| 1 | <?php |
||
| 18 | class ServerResponseException extends \Exception |
||
| 19 | { |
||
| 20 | /** @var ServerResponse The server response. */ |
||
| 21 | private $serverResponse; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * Contract a server response exception with the gieven server response. |
||
| 25 | * |
||
| 26 | * @param ServerResponse $serverResponse |
||
| 27 | * @param \Exception|null $exception = null |
||
| 28 | */ |
||
| 29 | 2 | public function __construct(ServerResponse $serverResponse, \Exception $exception = null) |
|
| 35 | |||
| 36 | /** |
||
| 37 | * Returns the server response. |
||
| 38 | * |
||
| 39 | * @return ServerResponse the server response. |
||
| 40 | */ |
||
| 41 | 1 | public function getServerResponse() |
|
| 45 | } |
||
| 46 |