summaryrefslogtreecommitdiff
path: root/Examples/Exceptions/exception.php
diff options
context:
space:
mode:
authorJasperVanEck <jaspergkurtz@gmail.com>2013-11-28 13:34:35 +0100
committerJasperVanEck <jaspergkurtz@gmail.com>2013-11-28 13:34:35 +0100
commita6587568fe996abc6b128d5e78d61c342e95d922 (patch)
treebb5d1b76e0a7494d12cb718eca317b9487708df0 /Examples/Exceptions/exception.php
parent31fcc388250bbb7761f2c9c8fb25b92b5e50ef82 (diff)
comments updated, and Exception example added
Diffstat (limited to 'Examples/Exceptions/exception.php')
-rw-r--r--Examples/Exceptions/exception.php17
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";