1 | <?php |
||
13 | class Exception extends \Exception |
||
14 | { |
||
15 | /** |
||
16 | * a defined constant when the API is is invalid (or empty) |
||
17 | */ |
||
18 | const INVALID_API_KEY = 0; |
||
19 | |||
20 | /** |
||
21 | * @var array |
||
22 | */ |
||
23 | private $errors; |
||
24 | |||
25 | /** |
||
26 | * Overloaded to allow specific errors given by the API back to the handler |
||
27 | * @inherit |
||
28 | * |
||
29 | * @param null|string $message |
||
30 | * @param int $code |
||
31 | * @param \Exception $previous |
||
32 | * @param array $errors |
||
33 | */ |
||
34 | public function __construct($message = null, $code = 0, \Exception $previous = null, array $errors = []) |
||
39 | |||
40 | /** |
||
41 | * @return array |
||
42 | */ |
||
43 | public function getErrors() |
||
47 | } |
||
48 |