Total Complexity | 4 |
Total Lines | 26 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
11 | class CustomExceptionCreator |
||
12 | { |
||
13 | const MAX_VALID_ERROR_CODE = -32000; |
||
14 | const MIN_VALID_ERROR_CODE = -32099; |
||
15 | |||
16 | const ERROR_DATA_PREVIOUS_KEY = 'previous'; |
||
17 | |||
18 | /** |
||
19 | * @param \Exception $exception |
||
20 | * |
||
21 | * @return JsonRpcExceptionInterface |
||
22 | */ |
||
23 | 3 | public function createFor(\Exception $exception) : JsonRpcExceptionInterface |
|
39 |