diff options
Diffstat (limited to 'Examples')
-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"; |