@Override protected ServiceInvocationException recreateOnClientSide() { return new RemoteServiceInvocationException(getServiceExceptionMessage(), getExceptionType()); }
private static ServiceInvocationException toRuntimeException(Throwable exception) { if (exception instanceof RuntimeException) { return (ServiceInvocationException) exception; } else { return new RemoteServiceInvocationException("Remote service threw exception: " + exception.getMessage(), exception.getClass().getName()); } }
protected final ServiceInvocationException createClientSideException(AstrixServiceInvocationResponse response, int version) { if (response.getException() != null) { ServiceInvocationException exception = objectSerializer.deserialize(response.getException(), ServiceInvocationException.class, version); return exception; } return new RemoteServiceInvocationException(response.getExceptionMsg(), response.getThrownExceptionType()); }