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.Public
@InterfaceStability.Evolving
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, getErrorCode, toString, unwrapRemoteException, unwrapRemoteException, valueOf |
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 © 2015 The Apache Software Foundation. All Rights Reserved.