If I don\'t catch an exception in PHP, I get a helpful error message in my error.log file with a stack trace. For example, if I run:
error.log
You can use http://php.net/manual/en/function.set-exception-handler.php to register a callback function which would get the message from $e->getMessage(); and dump it to file.