예제 #1
0
 public function __construct($message = null, $action = null, $resource = null)
 {
     $this->action = $action;
     $this->resource = $resource;
     $message || ($message = \Lang::get('admin.errors.unauthorized.default'));
     if (empty($message)) {
         $message = 'You are not authorized to access this page.';
     }
     parent::__construct($message);
 }
예제 #2
0
 /**
  * Overridden \FuelException construct to add a Fieldset instance into the exception
  *
  * @param  string  the error message
  * @param  int  the error code
  * @param  \Exception any previous exception
  * @param  \Fieldset  the fieldset on which this exception was triggered
  */
 public function __construct($message = null, $code = 0, \Exception $previous = null, \Fieldset $fieldset = null)
 {
     parent::__construct($message, $code, $previous);
     $this->fieldset = $fieldset;
 }
예제 #3
0
파일: error.php 프로젝트: maca134/fuel-amon
 public function __construct($errstr, $errno, $errfile, $errline)
 {
     parent::__construct($errstr, $errno);
 }
 public function __construct($message = '', $code = 0, $previous = null)
 {
     parent::__construct($message, $code, $previous);
 }
예제 #5
0
 public function __construct($lang_key, array $params = array())
 {
     parent::__construct(\Lang::get("admin.errors.account.{$lang_key}", $params));
 }