@InterfaceAudience.Public @InterfaceStability.Evolving public class RemoteWithExtrasException extends org.apache.hadoop.ipc.RemoteException
RemoteException
with some extra information. If source exception
was a DoNotRetryIOException
,
isDoNotRetry()
will return true.
A RemoteException
hosts exceptions we got from the server.
Modifier and Type | Field and Description |
---|---|
private boolean |
doNotRetry |
private String |
hostname |
private int |
port |
Constructor and Description |
---|
RemoteWithExtrasException(String className,
String msg,
boolean doNotRetry) |
RemoteWithExtrasException(String className,
String msg,
String hostname,
int port,
boolean doNotRetry) |
Modifier and Type | Method and Description |
---|---|
String |
getHostname() |
int |
getPort() |
boolean |
isDoNotRetry() |
getClassName, getErrorCode, toString, unwrapRemoteException, unwrapRemoteException, valueOf
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
private final String hostname
private final int port
private final boolean doNotRetry
public RemoteWithExtrasException(String className, String msg, boolean doNotRetry)
public String getHostname()
public int getPort()
public boolean isDoNotRetry()
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.