private void handleOperationError(RemotePropagatable remotePropagatable, Throwable e) {
if (e instanceof OutOfMemoryError) {
OutOfMemoryErrorDispatcher.onOutOfMemory((OutOfMemoryError) e);
}
remotePropagatable.logError(e);
ResponseHandler responseHandler = remotePropagatable.getResponseHandler();
if (remotePropagatable.returnsResponse() && responseHandler != null) {
try {
if (node.isActive()) {
responseHandler.sendResponse(e);
} else if (responseHandler.isLocal()) {
responseHandler.sendResponse(new HazelcastInstanceNotActiveException());
}
} catch (Throwable t) {
logger.warning("While sending op error... op: " + remotePropagatable + ", error: " + e, t);
}
}