1 | <?php |
||
20 | class SodaException extends \Exception |
||
21 | { |
||
22 | /** |
||
23 | * The JSON object response when a SODA error is thrown |
||
24 | * |
||
25 | * @var array |
||
26 | */ |
||
27 | private $jsonResponse; |
||
28 | |||
29 | /** |
||
30 | * Create an exception |
||
31 | * |
||
32 | * @param array $jsonResponse The JSON object returned by Socrata with error information |
||
33 | * |
||
34 | * @since 0.1.0 |
||
35 | */ |
||
36 | public function __construct ($jsonResponse) |
||
43 | |||
44 | /** |
||
45 | * Get an associative array of the error that was thrown by Socrata |
||
46 | * |
||
47 | * @since 0.1.2 |
||
48 | * |
||
49 | * @return array An associative array of the error Socrata threw |
||
50 | */ |
||
51 | public function getJsonResponse () |
||
55 | } |
||
56 |