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 rethrow the exception as a RunTimeException and it will keep the stacktrace :)
try { // bad exception throwing code } catch (Exception $e) { throw new RuntimeException($e->getMessage(), $e->getCode(), $e); }