Example #1
0
 public function __construct($view = '', $message = '', $code = 0, Exception $previous = NULL)
 {
     parent::__construct($message, $code, $previous);
     if (!starts_with(Atto::dir_app(), $view) && !starts_with(Atto::dir_htdocs(), $view)) {
         $view = Atto::makeAccessPath(array(Atto::dir_error(), Atto::dir_atto_error()), array($view));
     }
     $this->view = $view;
 }
 public function __construct($status, $message = '', $code = 0, Exception $previous = NULL)
 {
     parent::__construct($message, $code, $previous);
     $this->status = intval($status);
 }