public class RemoteException extends IOException
| Constructor and Description |
|---|
RemoteException(String className,
String msg) |
| Modifier and Type | Method and Description |
|---|---|
String |
getClassName() |
IOException |
unwrapRemoteException()
Instantiate and return the exception wrapped up by this remote exception.
|
IOException |
unwrapRemoteException(Class<?>... lookupTypes)
If this remote exception wraps up one of the lookupTypes
then return this exception.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic String getClassName()
public IOException unwrapRemoteException(Class<?>... lookupTypes)
Unwraps any IOException.
lookupTypes - the desired exception class.public IOException unwrapRemoteException()
This unwraps any Throwable that has a constructor taking a String as a parameter.
Otherwise it returns this.
ThrowableCopyright © 2015 The Apache Software Foundation. All rights reserved.