public Exception unwrapRemoteException() { final Throwable cause = getCause(); if (cause instanceof RemoteException) { return ((RemoteException)cause).unwrapRemoteException(); } if (cause instanceof Exception) { return (Exception)cause; } return new Exception(cause); }
@Override public String toString() { String className = getCause().getClass().getName(); return className + " via " + getSource() + ":" + getLocalizedMessage(); }
public ForeignExceptionMessage convert() { return ForeignExceptionUtil.toProtoForeignException(getSource(), getCause()); }
public static Throwable getExceptionCause(final Procedure<?> procInfo) { assert procInfo.isFailed(); Throwable cause = procInfo.getException().getCause(); return cause == null ? procInfo.getException() : cause; }
RemoteProcedureException exception = proc.getException(); builder.setException( RemoteProcedureException.toProto(exception.getSource(), exception.getCause()));
public Exception unwrapRemoteException() { final Throwable cause = getCause(); if (cause instanceof RemoteException) { return ((RemoteException)cause).unwrapRemoteException(); } if (cause instanceof Exception) { return (Exception)cause; } return new Exception(cause); }
public Exception unwrapRemoteException() { final Throwable cause = getCause(); if (cause instanceof RemoteException) { return ((RemoteException)cause).unwrapRemoteException(); } if (cause instanceof Exception) { return (Exception)cause; } return new Exception(cause); }
@Override public String toString() { String className = getCause().getClass().getName(); return className + " via " + getSource() + ":" + getLocalizedMessage(); }
@Override public String toString() { String className = getCause().getClass().getName(); return className + " via " + getSource() + ":" + getLocalizedMessage(); }
@Override public String toString() { String className = getCause().getClass().getName(); return className + " via " + getSource() + ":" + getLocalizedMessage(); }
public ForeignExceptionMessage convert() { return ForeignExceptionUtil.toProtoForeignException(getSource(), getCause()); }
public ForeignExceptionMessage convert() { return ForeignExceptionUtil.toProtoForeignException(getSource(), getCause()); }
public ForeignExceptionMessage convert() { return ForeignExceptionUtil.toProtoForeignException(getSource(), getCause()); }
public static Throwable getExceptionCause(final Procedure<?> procInfo) { assert procInfo.isFailed(); Throwable cause = procInfo.getException().getCause(); return cause == null ? procInfo.getException() : cause; }
public static Throwable getExceptionCause(final Procedure<?> procInfo) { assert procInfo.isFailed(); Throwable cause = procInfo.getException().getCause(); return cause == null ? procInfo.getException() : cause; }
/** * Helper to create the ProcedureInfo from Procedure. */ @InterfaceAudience.Private public static ProcedureInfo createProcedureInfo(final Procedure proc, final NonceKey nonceKey) { RemoteProcedureException exception = proc.hasException() ? proc.getException() : null; return new ProcedureInfo( proc.getProcId(), proc.toStringClass(), proc.getOwner(), proc.getState(), proc.hasParent() ? proc.getParentProcId() : -1, nonceKey, exception != null ? RemoteProcedureException.toProto(exception.getSource(), exception.getCause()) : null, proc.getLastUpdate(), proc.getStartTime(), proc.getResult()); }
RemoteProcedureException exception = proc.getException(); builder.setException( RemoteProcedureException.toProto(exception.getSource(), exception.getCause()));
RemoteProcedureException exception = proc.getException(); builder.setException( RemoteProcedureException.toProto(exception.getSource(), exception.getCause()));
RemoteProcedureException exception = proc.getException(); builder.setException( RemoteProcedureException.toProto(exception.getSource(), exception.getCause()));