Unhandled Exception

Message:

".$exception->getMessage()."

Location:

".$exception->getFile()." on line ".$exception->getLine()."

Stack Trace:

".$exception->getTraceAsString()."
"; } else { Response::error('500')->send(); } exit(1); } /** * Handle a native PHP error as an ErrorException. * * @param int $code * @param string $error * @param string $file * @param int $line * @return void */ public static function native($code, $error, $file, $line) { if (error_reporting() === 0) return; // For a PHP error, we'll create an ErrorExcepetion and then feed that // exception to the exception method, which will create a simple view // of the exception details. The ErrorException class is built-in to // PHP for converting native errors to Exceptions. $exception = new \ErrorException($error, $code, 0, $file, $line); if (in_array($code, Config::get('error.ignore'))) { return static::log($exception); } static::exception($exception); } /** * Handle the PHP shutdown event. * * @return void */ public static function shutdown() { // If a fatal error occured that we have not handled yet, we will // create an ErrorException and feed it to the exception handler, // as it will not have been handled by the error handler. if ( ! is_null($error = error_get_last())) { extract($error, EXTR_SKIP); static::exception(new \ErrorException($message, $type, 0, $file, $line)); } } /** * Log an exception. * * @param Exception $exception * @return void */ public static function log($exception) { if (Config::get('error.log')) { call_user_func(Config::get('error.logger'), $exception); } } }