/**
  * Creates exception instance.
  *
  * @param string     $message  Message.
  * @param integer    $code     Code.
  * @param \Exception $previous Previous exception.
  */
 public function __construct($message = '', $code = 0, \Exception $previous = null)
 {
     parent::__construct($message, self::TYPE_NOT_FOUND, $previous);
 }
Exemplo n.º 2
0
 /**
  * @param string    $message
  * @param int       $code
  * @param Exception $previous
  */
 public function __construct($message = '', $code = 0, Exception $previous = null)
 {
     parent::__construct($message, $code, $previous);
     $this->app = App::getInstance('zoo');
     $this->isAjax = $this->app->jbrequest->isAjax();
 }