org.apache.hadoop.hbase.ipc
Class RemoteWithExtrasException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.io.IOException
              extended by org.apache.hadoop.ipc.RemoteException
                  extended by 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

Constructor Summary
RemoteWithExtrasException(String className, String msg, boolean doNotRetry)
           
RemoteWithExtrasException(String className, String msg, String hostname, int port, boolean doNotRetry)
           
 
Method Summary
 String getHostname()
           
 int getPort()
           
 boolean isDoNotRetry()
           
 
Methods inherited from class org.apache.hadoop.ipc.RemoteException
getClassName, getErrorCode, toString, unwrapRemoteException, unwrapRemoteException, valueOf
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RemoteWithExtrasException

public RemoteWithExtrasException(String className,
                                 String msg,
                                 boolean doNotRetry)

RemoteWithExtrasException

public RemoteWithExtrasException(String className,
                                 String msg,
                                 String hostname,
                                 int port,
                                 boolean doNotRetry)
Method Detail

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.