diff options
author | JasperVanEck <jaspergkurtz@gmail.com> | 2013-11-28 16:50:12 +0100 |
---|---|---|
committer | JasperVanEck <jaspergkurtz@gmail.com> | 2013-11-28 16:50:12 +0100 |
commit | b6665b72996d23522d8a277cf4acc3d46e5e11fa (patch) | |
tree | 816b5225806f60a043e35faa366f5becf9ca2f9f /Examples/Exceptions | |
parent | 9185842b1d2fd352f6d71a46d2017fa25cc3c6a7 (diff) |
Added a very basic exception class, and added an exception example
Diffstat (limited to 'Examples/Exceptions')
-rw-r--r-- | Examples/Exceptions/exception.php | 5 |
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"; |