/** * show exceptions * @param \Throwable $e */ public static final function handleException(\Throwable $e) { if ($e instanceof IPrintableException) { $e->show(); exit(1); } // repack self::handleException(new CoreException($e->getMessage(), $e->getCode(), '', $e)); }