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