ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ClientHttpException.php
Go to the documentation of this file.
1<?php
2
3namespace Sabre\HTTP;
4
15class ClientHttpException extends \Exception implements HttpException {
16
22 protected $response;
23
30
31 $this->response = $response;
32 parent::__construct($response->getStatusText(), $response->getStatus());
33
34 }
35
41 function getHttpStatus() {
42
43 return $this->response->getStatus();
44
45 }
46
52 function getResponse() {
53
54 return $this->response;
55
56 }
57
58}
An exception for terminatinating execution or to throw for unit testing.
This exception represents a HTTP error coming from the Client.
getHttpStatus()
The http status code for the error.
getResponse()
Returns the full response object.
__construct(ResponseInterface $response)
Constructor.
An exception representing a HTTP error.
This interface represents a HTTP response.