org.apache.hadoop.hbase.ipc
Class RemoteWithExtrasException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
org.apache.hadoop.ipc.RemoteException
org.apache.hadoop.hbase.ipc.RemoteWithExtrasException
- All Implemented Interfaces:
- Serializable
@InterfaceAudience.Private
public class RemoteWithExtrasException
- extends org.apache.hadoop.ipc.RemoteException
A RemoteException
with some extra information. If source exception
was a DoNotRetryIOException
, isDoNotRetry()
will return true.
A RemoteException
hosts exceptions we got from the server.
- See Also:
- Serialized Form
Methods inherited from class org.apache.hadoop.ipc.RemoteException |
getClassName, unwrapRemoteException, unwrapRemoteException, valueOf |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
RemoteWithExtrasException
public RemoteWithExtrasException(String className,
String msg,
boolean doNotRetry)
RemoteWithExtrasException
public RemoteWithExtrasException(String className,
String msg,
String hostname,
int port,
boolean doNotRetry)
getHostname
public String getHostname()
- Returns:
- null if not set
getPort
public int getPort()
- Returns:
- -1 if not set
isDoNotRetry
public boolean isDoNotRetry()
- Returns:
- True if origin exception was a do not retry type.
Copyright © 2013 The Apache Software Foundation. All Rights Reserved.