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); }
/** * 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; }
public function __construct($errstr, $errno, $errfile, $errline) { parent::__construct($errstr, $errno); }
public function __construct($message = '', $code = 0, $previous = null) { parent::__construct($message, $code, $previous); }
public function __construct($lang_key, array $params = array()) { parent::__construct(\Lang::get("admin.errors.account.{$lang_key}", $params)); }