org.apache.hadoop.ipc
Class RemoteException
java.lang.Object
   java.lang.Throwable
java.lang.Throwable
       java.lang.Exception
java.lang.Exception
           java.io.IOException
java.io.IOException
               org.apache.hadoop.ipc.RemoteException
org.apache.hadoop.ipc.RemoteException
- All Implemented Interfaces: 
- Serializable
- public class RemoteException 
- extends IOException
- See Also:
- Serialized Form
 
 
| Methods inherited from class java.lang.Throwable | 
| fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString | 
 
 
RemoteException
public RemoteException(String className,
                       String msg)
getClassName
public String getClassName()
- 
 
unwrapRemoteException
public IOException unwrapRemoteException(Class<?>... lookupTypes)
- If this remote exception wraps up one of the lookupTypes
 then return this exception.
 
 Unwraps any IOException.
 
 
- 
- Parameters:
- lookupTypes- the desired exception class.
- Returns:
- IOException, which is either the lookupClass exception or this.
 
unwrapRemoteException
public IOException unwrapRemoteException()
- Instantiate and return the exception wrapped up by this remote exception.
 
  This unwraps any Throwablethat has a constructor taking
 aStringas a parameter.
 Otherwise it returns this.
 
 
- 
- Returns:
- Throwable
 
valueOf
public static RemoteException valueOf(Attributes attrs)
- Create RemoteException from attributes
 
- 
 
Copyright © 2009 The Apache Software Foundation