/** * Method that convert an exception to html * * @param \Exception $e * * @return string HTML */ protected function dumpException(\Exception $e) { Logger::log('Starting dump exception'); $ex = NULL !== $e->getPrevious() ? $e->getPrevious() : $e; $error = array("error" => $ex->getMessage(), "file" => $ex->getFile(), "line" => $ex->getLine()); Logger::log('Throwing exception', LOG_ERR, $error); unset($error); return $this->router->httpNotFound($ex); }