I have a script with an exception handler. This exception handler cleans up a couple connections, prior to the script exiting after an exception.
I would like to re-thr
Just catch the exception and log the message yourself, then rethrow.
try { $foo->doSomethingToCauseException(); } catch (Exception $e) { error_log($e->getMessage()); throw $e; }
If you bubble up to the top and PHP is unable to handle, it will result in uncaught exception.