- case UnexpectedErrorException e ->
- throw new JsonRpcException(new JsonRpcResponse.Error(JsonRpcResponse.Error.INTERNAL_ERROR,
- e.getMessage(),
- getErrorDataNode(objectMapper, result)));
+ case UnexpectedErrorException e -> {
+ logger.error("Command execution failed with unexpected error", e);
+ throw new JsonRpcException(new JsonRpcResponse.Error(JsonRpcResponse.Error.INTERNAL_ERROR,
+ e.getMessage() + " (" + e.getClass().getSimpleName() + ")",
+ getErrorDataNode(objectMapper, result)));
+ }