1 | <?php |
||
19 | class RestException extends \Exception |
||
20 | { |
||
21 | /** |
||
22 | * @var array |
||
23 | */ |
||
24 | protected $data; |
||
25 | |||
26 | /** |
||
27 | * The constructor class. |
||
28 | * |
||
29 | * @param string $message The internal exception message. |
||
30 | * @param integer $code The internal exception code. |
||
31 | * @param \Exception $previous The previous exception. |
||
32 | * @param array $data The wrong data. |
||
33 | */ |
||
34 | public function __construct($message = null, $code = 0, \Exception $previous = null, array $data = []) |
||
40 | |||
41 | /** |
||
42 | * The getter for data. |
||
43 | * |
||
44 | * @return array |
||
45 | */ |
||
46 | public function getData() |
||
50 | } |
||
51 |