1 | <?php |
||
16 | class HttpException extends \Exception |
||
17 | { |
||
18 | /** |
||
19 | * Create an exception |
||
20 | * |
||
21 | * @param string $code The HTTP code returned |
||
22 | * @param string $response A JSON formatted string containing information regarding the HTTP error or a string |
||
23 | * simply containing stating the error. |
||
24 | * |
||
25 | * @since 0.1.0 |
||
26 | */ |
||
27 | 1 | public function __construct ($code, $response) |
|
44 | } |
||
45 |