fatalError); } /** * @return string The fatal error message */ public function getFatalError() { return $this->fatalError; } /** * Sets standard page variables in the case of a controller error. */ public function handleError($exception) { if ( $exception instanceof Exception && !($exception instanceof ApplicationException) ) { EventLog::addException($exception); } $errorMessage = ErrorHandler::getDetailedMessage($exception); $this->fatalError = $errorMessage; $this->vars['fatalError'] = $errorMessage; } }