break;
}
}
if (false == thrown) {
result = new RpcException(caught.getMessage());
}
exceptionWasThrown = true;
} catch (final RuntimeException runtimeException) {
exceptionWasThrown = true;
result = new RpcException(runtimeException.getMessage());
} catch (final Throwable throwable) {
exceptionWasThrown = true;
result = new RpcException(throwable.getMessage());
}
// write the result...
outputStream.writeBoolean(exceptionWasThrown);
outputStream.writeObject(result);