public ReplyException getException() { if (this.returnValueIsException) { ReplyException exception = (ReplyException) this.returnValue; if (exception != null) { InternalDistributedMember sendr = getSender(); if (sendr != null) { exception.setSenderIfNull(sendr); } } return exception; } else { return null; } }
@Override protected void process(DistributionMessage message, boolean warn) { if (message instanceof AdminFailureResponse) { Exception ex = ((AdminFailureResponse) message).getCause(); if (ex != null) { ReplyException replyException = new ReplyException(ex); replyException.setSenderIfNull(message.getSender()); processException(message, replyException); } } super.process(message, warn); } }
ex.setSenderIfNull(region.getCache().getMyId()); processException(ex); ex.setSenderIfNull(region.getCache().getMyId()); processException(ex);