1 | <?php |
||
15 | class JsonRpcException extends \Exception implements JsonRpcExceptionInterface |
||
16 | { |
||
17 | /** @var JsonRpcErrorInterface */ |
||
18 | private $jsonRpcError; |
||
19 | |||
20 | public function __construct($message = '', $code = 0, Exception $previous = null) |
||
26 | |||
27 | |||
28 | /** |
||
29 | * @return JsonRpcErrorInterface |
||
30 | */ |
||
31 | public function getJsonRpcError() |
||
35 | |||
36 | /** |
||
37 | * @param JsonRpcErrorInterface $jsonRpcError |
||
38 | */ |
||
39 | protected function setJsonRpcError(JsonRpcErrorInterface $jsonRpcError) |
||
43 | |||
44 | public static function create($code, $message, $data = null) |
||
51 | } |
||
52 |