protected function defaultError($e = null) { if ($e instanceof \Exception && !$e instanceof \ErrorException) { \Scalr::logException($e); } return $this->getDefaultTemplate('Error', 'A webstite error has occured'); }