Beispiel #1
0
 /**
  * @inheritDoc
  */
 public function __construct($message = '', $code = 403, \Exception $previous = null)
 {
     if (empty($message)) {
         $message = 'Forbidden';
     }
     parent::__construct($message, $code, $previous);
 }
Beispiel #2
0
 /**
  * @inheritDoc
  */
 public function __construct($message = '', $code = 409, \Exception $previous = null)
 {
     if (empty($message)) {
         $message = 'Conflict';
     }
     parent::__construct($message, $code, $previous);
 }
 /**
  * @inheritDoc
  */
 public function __construct($message = '', $code = 405, \Exception $previous = null)
 {
     if (empty($message)) {
         $message = 'Method Not Allowed';
     }
     parent::__construct($message, $code, $previous);
 }
 /**
  * @inheritDoc
  */
 public function __construct($message = '', $code = 407, \Exception $previous = null)
 {
     if (empty($message)) {
         $message = 'Proxy Authentication Required';
     }
     parent::__construct($message, $code, $previous);
 }
 /**
  * @inheritDoc
  */
 public function __construct($message = '', $code = 402, \Exception $previous = null)
 {
     if (empty($message)) {
         $message = 'Payment Required';
     }
     parent::__construct($message, $code, $previous);
 }
 /**
  * @inheritDoc
  */
 public function __construct($message = '', $code = 429, \Exception $previous = null)
 {
     if (empty($message)) {
         $message = 'Too Many Requests';
     }
     parent::__construct($message, $code, $previous);
 }
 /**
  * @inheritDoc
  */
 public function __construct($message = '', $code = 408, \Exception $previous = null)
 {
     if (empty($message)) {
         $message = 'Request Timeout';
     }
     parent::__construct($message, $code, $previous);
 }
Beispiel #8
0
 /**
  * @inheritDoc
  */
 public function __construct($message = '', $code = 406, \Exception $previous = null)
 {
     if (empty($message)) {
         $message = 'Not Acceptable';
     }
     parent::__construct($message, $code, $previous);
 }
Beispiel #9
0
 /**
  * @inheritDoc
  */
 public function __construct($message = '', $code = 401, \Exception $previous = null)
 {
     if (empty($message)) {
         $message = 'Unauthorized';
     }
     parent::__construct($message, $code, $previous);
 }