1 | <?php namespace Stevenmaguire\Yelp\Exception; |
||
3 | class HttpException extends \Exception |
||
4 | { |
||
5 | /** |
||
6 | * Response body |
||
7 | * |
||
8 | * @var string |
||
9 | */ |
||
10 | protected $responseBody; |
||
11 | |||
12 | /** |
||
13 | * Set exception response body from Http request |
||
14 | * |
||
15 | * @param string $body |
||
16 | * |
||
17 | * @return Stevenmaguire\Yelp\Exception |
||
18 | */ |
||
19 | 4 | public function setResponseBody($body = null) |
|
25 | |||
26 | /** |
||
27 | * Get exception response body |
||
28 | * |
||
29 | * @return string |
||
30 | */ |
||
31 | 2 | public function getResponseBody() |
|
35 | } |
||
36 |