diff options
author | JasperVanEck <jaspergkurtz@gmail.com> | 2013-11-29 15:11:17 +0100 |
---|---|---|
committer | JasperVanEck <jaspergkurtz@gmail.com> | 2013-11-29 15:11:17 +0100 |
commit | 6e8778d6dd0f7295cecf047e57679cba595885d1 (patch) | |
tree | 5f6789f7736a846d072833550bd01e39ac4f90c3 /Examples/README.md | |
parent | c162135cb4c49e2724d5b8028f037c01808b6e84 (diff) |
Changes in exceptions, to distinguish between catching and throwing exceptions. README.md of examples is doen for now
Diffstat (limited to 'Examples/README.md')
-rw-r--r-- | Examples/README.md | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/Examples/README.md b/Examples/README.md index 52a6251..47cdabc 100644 --- a/Examples/README.md +++ b/Examples/README.md @@ -121,5 +121,26 @@ FunctionWithParameters Exceptions ---------- + The sixth example is composed of two parts, the throw exception and - the catch exception examples. + the catch exception examples. The requirements of the catch example, + passing a callback as a parameter, have not yet been implemented. + + The throw example is there to show that an exception thrown in + a C++ function can be caught and handled in your PHP script. The + exception thrown is a Php::Exception. + + The catch example shows that when a PHP function is passed as a + callback, and is capable of throwing a (PHP) exception, that it + can be caught as Php::Exception and then handled in the C++ code. + However, the passing of a function as a callback has not yet been + implemented. It would need to be implemented for this specific + example to work. + + Functions and/or classes defined in this Example. + - void my_catch_exception_function(Php::Parameters ¶ms) + - void my_throw_exception_function() + + + + |