| 1 | <?php |
||
| 14 | class GenericHTTPError extends \Exception implements Exception |
||
| 15 | { |
||
| 16 | protected $httpResponseCode; |
||
| 17 | protected $httpResponseBody; |
||
| 18 | |||
| 19 | 1 | public function __construct($message = null, $response_code = null, $response_body = null, $code = 0, \Exception $previous = null) |
|
| 20 | { |
||
| 21 | 1 | parent::__construct($message, $code, $previous); |
|
| 22 | |||
| 23 | 1 | $this->httpResponseCode = $response_code; |
|
| 24 | 1 | $this->httpResponseBody = $response_body; |
|
| 25 | 1 | } |
|
| 26 | |||
| 27 | public function getHttpResponseCode() |
||
| 31 | |||
| 32 | public function getHttpResponseBody() |
||
| 36 | } |
||
| 37 |