tryphp_exception_obj.php:
getCode(); $message = $ex->getMessage(); $file = $ex->getFile(); $line = $ex->getLine(); echo "Exception thrown in $file on line $line: [Code $code] $message"; } ?>
Exception thrown in /home/TwT0ln/prog.php on line 8: [Code 1]
Division by zero