189190191192193194195196197198199200201202
try { if (exception instanceof JsonRpcErrorException) { JsonRpcErrorException error = (JsonRpcErrorException) exception; transaction.sendError(error.getCode(), error.getMessage(), error.getData()); } else { transaction.sendError(exception); }
86878889909192939495
if (response.getSessionId() != null) { sessionId = response.getSessionId(); } if (response.getError() != null) { throw new JsonRpcErrorException(response.getError()); } return response.getResult(); }
130131132133134135136137138139140
if (response.getSessionId() != null) { sessionId = response.getSessionId(); } if (response.getError() != null) { continuation.onError(new JsonRpcErrorException( response.getError())); } else { continuation.onSuccess(response.getResult()); } }