From b6665b72996d23522d8a277cf4acc3d46e5e11fa Mon Sep 17 00:00:00 2001 From: JasperVanEck Date: Thu, 28 Nov 2013 16:50:12 +0100 Subject: Added a very basic exception class, and added an exception example --- Examples/Exceptions/exception.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Examples') 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"; -- cgit v1.2.3