Пример #1
0
 public function __construct($code = NULL, \Exception $cause = NULL)
 {
     parent::__construct($code === NULL ? WebDav::CODE_INTERNAL_SERVER_ERROR : $code, $cause);
 }
Пример #2
0
 public function __construct($status = NULL, \Exception $cause = NULL)
 {
     $status = $status === NULL ? WebDav::CODE_INTERNAL_SERVER_ERROR : $status;
     parent::__construct($status, $cause);
     $this->message = WebDav::getReason($status);
 }
Пример #3
0
 public function __construct(\Exception $cause = NULL)
 {
     parent::__construct(Http::CODE_NOT_FOUND, $cause);
 }
Пример #4
0
 public function __construct(EntityInterface $entity, $status = NULL, \Exception $cause = NULL)
 {
     parent::__construct($status, $cause);
     $this->entity = $entity;
 }
Пример #5
0
 public function __construct(HttpResponse $response, \Exception $cause = NULL)
 {
     parent::__construct($response->getStatus(), $cause);
     $this->response = $response;
 }
Пример #6
0
 public function __construct(array $allow = [], \Exception $cause = NULL)
 {
     parent::__construct(Http::CODE_METHOD_NOT_ALLOWED, $cause);
     $this->allow = $allow;
 }
Пример #7
0
 public function __construct(\Exception $cause = NULL)
 {
     parent::__construct(Http::CODE_BAD_REQUEST, $cause);
 }