* @param \Exception $e
*/
public static final function handleException($e) {
+ // backwards compatibility
+ if ($e instanceof IPrintableException) {
+ $e->show();
+ exit;
+ }
+
if (ob_get_level()) {
// discard any output generated before the exception occured, prevents exception
// being hidden inside HTML elements and therefore not visible in browser output
}
}
- // backwards compatibility
- if ($e instanceof IPrintableException) {
- $e->show();
- exit;
- }
-
@header('HTTP/1.1 503 Service Unavailable');
try {
\wcf\functions\exception\printThrowable($e);