org.apache.hadoop.ipc
Class RemoteException
java.lang.Object
  
java.lang.Throwable
      
java.lang.Exception
          
java.io.IOException
              
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 Throwable that has a constructor taking
 a String as a parameter.
 Otherwise it returns this.
- Returns:
 Throwable
 
 
Copyright © 2008 The Apache Software Foundation