This page is about the Exception feature of Php. 1)
Note that php has also a error reporting feature for the built-in function where you can set an error level.
The basic structure is:
try {
echo inverse(5) . "\n";
} catch (Exception $e) {
echo 'Caught exception: ', $e->getMessage(), "\n";
} finally {
echo "First finally.\n";
}
where:
throw new Exception('Youla not good !');