Ejemplo n.º 1
0
	/**
	 * 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);
 }
Ejemplo n.º 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'));
 }
Ejemplo n.º 6
0
 /**
  * @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)]);
 }
Ejemplo n.º 7
0
 public function render_exception()
 {
     header("HTTP/1.0 403 Forbidden", true);
     return parent::render_exception();
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 10
0
 public function __construct(\Exception $previous = NULL)
 {
     parent::__construct("The password could not be successfully validated.", UserException::INVALID_PASSWORD, $previous);
 }
Ejemplo n.º 11
0
 public function __construct()
 {
     parent::__construct('not_found', [], Response::HTTP_NOT_FOUND);
 }
Ejemplo n.º 12
0
 public function __construct()
 {
     parent::__construct('access_denied', [], Response::HTTP_FORBIDDEN);
 }
Ejemplo n.º 13
0
 public function __construct($email, \Exception $previous = NULL)
 {
     parent::__construct("The user with email \"{$email}\" could not be found.", UserException::NOTFOUND_BY_EMAIL, $previous);
 }
Ejemplo n.º 14
0
 /**
  * @param string $name
  */
 public function __construct($name)
 {
     parent::__construct('missing_argument', ['%name%' => $name]);
 }
 function __construct()
 {
     parent::__construct(true, false, false, "User not found", null);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 18
0
 public function __construct($title, $msg, $backlink = null, $backlinktitle = null)
 {
     header('HTTP/1.1 403 Forbidden');
     parent::__construct($title, $msg);
 }
Ejemplo n.º 19
0
 public function strings()
 {
     return array_merge(parent::strings(), array('title' => $this->get_sitename() . ': Authentication problem'));
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 21
0
 /**
  * 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);
 }