| Conditions | 1 |
| Paths | 1 |
| Total Lines | 6 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 33 | 4 | public function getJsonRpcResponseFromException(\Exception $exception, JsonRpcRequest $fromRequest = null) : JsonRpcResponse |
|
| 34 | { |
||
| 35 | 4 | $event = new ActionEvent\OnExceptionEvent($exception, $fromRequest); |
|
| 36 | 4 | $this->dispatchJsonRpcEvent($event::EVENT_NAME, $event); |
|
| 37 | |||
| 38 | 4 | return $this->responseCreator->createErrorResponse($event->getException(), $fromRequest); |
|
| 39 | } |
||
| 41 |