ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ClientHttpException.php
Go to the documentation of this file.
1 <?php
2 
3 namespace Sabre\HTTP;
4 
15 class 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 }
This interface represents a HTTP response.
getHttpStatus()
The http status code for the error.
This exception represents a HTTP error coming from the Client.
__construct(ResponseInterface $response)
Constructor.
getResponse()
Returns the full response object.
An exception representing a HTTP error.
getStatus()
Returns the current HTTP status code.
getStatusText()
Returns the human-readable status string.