/**
	 * Creates a new UserInputException.
	 * 
	 * @param	string		$field		affected formular field
	 * @param	string		$type		kind of this error
	 * @param	array		$variables	additional variables for AJAX error handling
	 */
	public function __construct($field = '', $type = 'empty', array $variables = array()) {
		$this->field = $field;
		$this->type = $type;
		$this->variables = $variables;
		$this->message = 'Parameter '.$field.' is missing or invalid';
		
		parent::__construct();
	}
 /**
  * Constructor.
  *
  * @param string          $message  The internal exception message
  * @param \Exception|null $previous The previous exception
  * @param int             $code     The internal exception code
  */
 public function __construct($message = null, \Exception $previous = null, $code = 0)
 {
     parent::__construct(422, $message, $previous, [], $code);
 }
 function __construct()
 {
     parent::__construct(true, false, false, "User ID is missing", null);
 }
Beispiel #4
0
 public function __construct($msg, $code, $medlem_id = null)
 {
     parent::__construct($msg);
 }
 /**
  * Creates a new IllegalLinkException object.
  */
 public function __construct()
 {
     parent::__construct(WCF::getLanguage()->get('wcf.global.error.permissionDenied'));
 }
 /**
  * @param string $name
  * @param string $msg
  * @param array $msgPlaceholder
  */
 public function __construct($name, $msg, $msgPlaceholder = [])
 {
     parent::__construct('invalid_argument', ['%name%' => $name, '%msg%' => Application::transExceptionMessage($msg, $msgPlaceholder)]);
 }
Beispiel #7
0
 public function render_exception()
 {
     header("HTTP/1.0 403 Forbidden", true);
     return parent::render_exception();
 }
Beispiel #8
0
 public function strings()
 {
     return array_merge(parent::strings(), array('title' => get_string('viewsubmissionexceptiontitle', 'view'), 'message' => get_string('viewsubmissionexceptionmessage', 'view')));
 }
 function __construct($message = null)
 {
     parent::__construct(true, true, true, $message, null);
 }
 public function __construct(\Exception $previous = NULL)
 {
     parent::__construct("The password could not be successfully validated.", UserException::INVALID_PASSWORD, $previous);
 }
Beispiel #11
0
 public function __construct()
 {
     parent::__construct('not_found', [], Response::HTTP_NOT_FOUND);
 }
 public function __construct()
 {
     parent::__construct('access_denied', [], Response::HTTP_FORBIDDEN);
 }
 public function __construct($email, \Exception $previous = NULL)
 {
     parent::__construct("The user with email \"{$email}\" could not be found.", UserException::NOTFOUND_BY_EMAIL, $previous);
 }
 /**
  * @param string $name
  */
 public function __construct($name)
 {
     parent::__construct('missing_argument', ['%name%' => $name]);
 }
 function __construct()
 {
     parent::__construct(true, false, false, "User not found", null);
 }
Beispiel #16
0
 public function __construct($msg, $code)
 {
     parent::__construct($msg, $code);
 }
 /**
  * Constructor.
  *
  * @param string          $message  The internal exception message
  * @param \Exception|null $previous The previous exception
  * @param int             $code     The internal exception code
  */
 public function __construct($message = 'The given user cannot be found.', \Exception $previous = null, $code = 0)
 {
     parent::__construct(404, $message, $previous, [], $code);
 }
Beispiel #18
0
 public function __construct($title, $msg, $backlink = null, $backlinktitle = null)
 {
     header('HTTP/1.1 403 Forbidden');
     parent::__construct($title, $msg);
 }
 public function strings()
 {
     return array_merge(parent::strings(), array('title' => $this->get_sitename() . ': Authentication problem'));
 }
Beispiel #20
0
 /**
  * Constructor.
  * @param integer $status HTTP status code, such as 404, 500, etc.
  * @param string $message error message
  * @param integer $code error code
  * @param \Exception $previous The previous exception used for the exception chaining.
  */
 public function __construct($status, $message = null, $code = 0, \Exception $previous = null)
 {
     $this->statusCode = $status;
     parent::__construct($message, $code, $previous);
 }
 /**
  * Creates a new UserInputException.
  * 
  * @param	string		$field		affected formular field
  * @param	string		$type		kind of this error
  */
 public function __construct($field = '', $type = 'empty')
 {
     $this->field = $field;
     $this->type = $type;
     parent::__construct();
 }
 /**
  * Creates a new NamedUserException object.
  * 
  * @param	string		$message
  */
 public function __construct($message)
 {
     parent::__construct($message);
 }