コード例 #1
0
 /**
  * @inheritdoc
  */
 public function __construct($message = self::DEFAULT_MESSAGE, $code = 401, \Exception $previous = null)
 {
     parent::__construct($message, $code, $previous);
 }
コード例 #2
0
 /**
  * @param string $method The unsupported HTTP method.
  * @param int $code
  * @param \Exception $previous
  */
 public function __construct($method, $code = Status::INTERNAL_SERVER_ERROR, \Exception $previous = null)
 {
     $this->method = $method;
     parent::__construct(\ICanboogie\format('Method not supported: %method', ['method' => $method]), $code, $previous);
 }