protected function handleViewException(\Exception $e, $obLevel) { while (ob_get_level() > $obLevel) { ob_end_clean(); } $message = $e->getMessage() . ' (View template: ' . realpath($this->_tempFilePath['content']) . ')'; $newException = new \ErrorException($message, 0, 1, $e->getFile(), $e->getLine(), $e); throw $newException; }