diff options
Diffstat (limited to 'Examples/Exceptions/exception.php')
-rw-r--r-- | Examples/Exceptions/exception.php | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Examples/Exceptions/exception.php b/Examples/Exceptions/exception.php new file mode 100644 index 0000000..0fffff7 --- /dev/null +++ b/Examples/Exceptions/exception.php @@ -0,0 +1,17 @@ +<?php +/* + * exception.cpp + * @author Jasper van Eck<jasper.vaneck@copernica.com> + * + * An example file to show the working of a function which throws an exception. + * + * Exceptions haven't been implemented yet. + * Therefore this example is not yet a working one. + */ + +/* + * Run a function which throws an exception. + */ + +echo "Function which throws an exception; my_throw_exception_function()\n" +echo my_throw_exception_function() . "\n"; |