Esempio n. 1
0
 public function __construct($message, $code = 500, Exception $previous = null, $traits = [])
 {
     parent::__construct($message, $code, $previous);
     $this->registerLogging();
     $txt = $message . ' in ' . parent::getFile() . ':' . parent::getLine() . "\n" . $this->generateBacktrace();
     $this->exceptionLog($txt);
     if (Config::get('app', 'debug') == 1) {
         $this->setErrorTraits($traits);
     } else {
         die('Whoops, looks like we encountered an error!');
     }
 }
 public function __construct()
 {
     $message = 'The requested route method is not allowed!';
     parent::__construct($message, 404, null, ['URI' => Router::formatURI($_SERVER['REQUEST_URI']), 'Method' => $_SERVER['REQUEST_METHOD']]);
 }
Esempio n. 3
0
 public function __construct()
 {
     $message = 'The requested route does not exist!';
     parent::__construct($message, 404, null, ['URI' => Router::formatURI($_SESSION['REQUEST_URI'])]);
 }