summaryrefslogtreecommitdiff
path: root/documentation/exceptions.html
diff options
context:
space:
mode:
authorEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2014-03-06 18:02:06 +0100
committerEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2014-03-06 18:02:06 +0100
commit9b44fc65647116f0d2e2b0fd623605977a8c78ca (patch)
tree698d16a0e4e1182a6fdba6c0e1a53066307c9a7d /documentation/exceptions.html
parentfecab9b936f5985da254ca42976eeaf8dbcbea1d (diff)
changes to documentation
Diffstat (limited to 'documentation/exceptions.html')
-rw-r--r--documentation/exceptions.html12
1 files changed, 9 insertions, 3 deletions
diff --git a/documentation/exceptions.html b/documentation/exceptions.html
index 88af60f..0b87c09 100644
--- a/documentation/exceptions.html
+++ b/documentation/exceptions.html
@@ -117,9 +117,8 @@ extern "C" {
The callMe() function from this example extension receives one single
parameter: a callback function that it will immediately call, and from which
the return value is also returned by the callMe() function. If this callback
- that is passed to the callMe() somehow throws an exception, it will be caught
- by the callMe() function, and the callMe() function will return an alternative
- string instead ("Exception caught!").
+ somehow throws an exception, it will be caught by the callMe() function, and
+ an alternative string will be returned instead ("Exception caught!").
</p>
<p>
<pre class="language-php"><code>
@@ -149,4 +148,11 @@ echo("$output\n");
This PHP script uses our extension and calls the callMe() function two times
in a row. First with a normal function that returns a string, but then with
a function that throws an exception - which will be caught by the extension.
+ The output is as you would expect.
+</p>
+<p>
+<pre>
+First call
+Exception caught!
+</pre>
</p>