/**
  * MethodNotAllowedException constructor.
  *
  * @param string $message  Error message (HTTP) that defines this exception
  * @param int    $code     Error code (HTTP) that defines this exception
  * @param null   $previous Inner/Previous exception that triggered this exception
  */
 public function __construct($message = self::HTTP_MESSAGE, $code = self::HTTP_CODE, $previous = null)
 {
     parent::__construct($message, $code, $previous);
 }
Ejemplo n.º 2
0
 public function __construct($message, $type, array $parameters = array())
 {
     parent::__construct($message, 401);
     $this->type = $type;
     $this->parameters = $parameters;
 }
Ejemplo n.º 3
0
 public function __construct($message)
 {
     parent::__construct($message, 410);
 }
Ejemplo n.º 4
0
 public function __construct($message, array $allowedMethods)
 {
     parent::__construct($message, 405);
     $this->allowedMethods = $allowedMethods;
 }