|
JBoss Remoting 3.1.0.Beta1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.io.IOException
org.jboss.remoting3.RemotingException
org.jboss.remoting3.RemoteExecutionException
public class RemoteExecutionException

Exception thrown when execution of a remote operation fails for some reason.
| Constructor Summary | |
|---|---|
RemoteExecutionException()
Constructs a RemoteExecutionException with no detail message. |
|
RemoteExecutionException(String msg)
Constructs a RemoteExecutionException with the specified detail message. |
|
RemoteExecutionException(String msg,
Throwable cause)
Constructs a RemoteExecutionException with the specified detail message and cause. |
|
RemoteExecutionException(Throwable cause)
Constructs a RemoteExecutionException with the specified cause. |
|
| Method Summary | ||
|---|---|---|
|
rethrow(Class<T> type)
Convenience method to rethrow the cause of a RemoteExecutionException as a specific type, in order
to simplify application exception handling. |
|
IllegalStateException |
unexpected()
Convenience method to get an unexpected exception type wrapped within a runtime exception. |
|
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public RemoteExecutionException()
initCause.
public RemoteExecutionException(String msg)
initCause.
msg - the detail messagepublic RemoteExecutionException(Throwable cause)
(cause == null ? null : cause.toString())(which typically contains the class and detail message of cause).
cause - the cause (which is saved for later retrieval by the
Throwable.getCause() method)
public RemoteExecutionException(String msg,
Throwable cause)
msg - the detail messagecause - the cause (which is saved for later retrieval by the
Throwable.getCause() method)| Method Detail |
|---|
public <T extends Throwable> void rethrow(Class<T> type)
throws T extends Throwable
RemoteExecutionException as a specific type, in order
to simplify application exception handling.
A typical usage might look like this:
try {
client.invoke(request);
} catch (RemoteExecutionException ree) {
ree.rethrow(IOException.class);
ree.rethrow(RuntimeException.class);
throw ree.unexpected();
}
Note that if the nested exception is an InterruptedException, the type that will actually be thrown
will be RemoteInterruptedException.
T - the exception typetype - the class of the exception
T - the exception, if it matches the given type
T extends Throwablepublic IllegalStateException unexpected()
|
JBoss Remoting 3.1.0.Beta1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||