/** * 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); }
public function __construct($message, $type, array $parameters = array()) { parent::__construct($message, 401); $this->type = $type; $this->parameters = $parameters; }
public function __construct($message) { parent::__construct($message, 410); }
public function __construct($message, array $allowedMethods) { parent::__construct($message, 405); $this->allowedMethods = $allowedMethods; }