summaryrefslogtreecommitdiff
path: root/Examples
diff options
context:
space:
mode:
authorJasperVanEck <jaspergkurtz@gmail.com>2013-11-28 16:50:12 +0100
committerJasperVanEck <jaspergkurtz@gmail.com>2013-11-28 16:50:12 +0100
commitb6665b72996d23522d8a277cf4acc3d46e5e11fa (patch)
tree816b5225806f60a043e35faa366f5becf9ca2f9f /Examples
parent9185842b1d2fd352f6d71a46d2017fa25cc3c6a7 (diff)
Added a very basic exception class, and added an exception example
Diffstat (limited to 'Examples')
-rw-r--r--Examples/Exceptions/exception.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/Examples/Exceptions/exception.php b/Examples/Exceptions/exception.php
index 3f567b3..b288e23 100644
--- a/Examples/Exceptions/exception.php
+++ b/Examples/Exceptions/exception.php
@@ -15,11 +15,12 @@
try
{
- echo "Function which throws an exception; my_throw_exception_function()\n"
+ echo "Function which throws an exception; my_throw_exception_function()\n";
echo my_throw_exception_function() . "\n";
}
catch (Exception $exception)
{
-
+ echo $exception->getMessage();
}
+ echo my_throw_exception_function() . "\n";