1 | <?php |
||
18 | class UnexpectedResponseException extends \DomainException |
||
19 | { |
||
20 | /** |
||
21 | * The Response object. |
||
22 | * |
||
23 | * @var Response |
||
24 | * @since 1.2.0 |
||
25 | */ |
||
26 | private $response; |
||
27 | |||
28 | /** |
||
29 | * Constructor |
||
30 | * |
||
31 | * @param Response $response The Response object. |
||
32 | * @param string $message The Exception message to throw. |
||
33 | * @param integer $code The Exception code. |
||
34 | * @param \Exception $previous The previous exception used for the exception chaining. |
||
35 | * |
||
36 | * @since 1.2.0 |
||
37 | */ |
||
38 | public function __construct(Response $response, $message = '', $code = 0, \Exception $previous = null) |
||
44 | |||
45 | /** |
||
46 | * Get the Response object. |
||
47 | * |
||
48 | * @return Response |
||
49 | * |
||
50 | * @since 1.2.0 |
||
51 | */ |
||
52 | public function getResponse() |
||
56 | } |
||
57 |