| 1 | <?php |
||
| 11 | class RequestException extends \Exception |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @var int |
||
| 15 | */ |
||
| 16 | protected $responseCode; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @param int $code |
||
| 20 | * @param string $message |
||
| 21 | */ |
||
| 22 | 5 | public function __construct(int $code, string $message) |
|
| 23 | { |
||
| 24 | 5 | $this->responseCode = $code; |
|
| 25 | |||
| 26 | 5 | parent::__construct($message, $code); |
|
| 27 | 5 | } |
|
| 28 | |||
| 29 | /** |
||
| 30 | * @return int |
||
| 31 | */ |
||
| 32 | public function getResponseCode() |
||
| 36 | } |
||
| 37 |