public class MethExecutorResult
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
static java.io.Serializable |
EXCEPTION_OCCURRED
A "result" object that indicates that an exception occurred
while invoking the method
|
static java.lang.Throwable |
NONSERIALIZABLE_EXCEPTION
A "exception" object that indicates that an exception could not
be serialized.
|
| Constructor and Description |
|---|
MethExecutorResult() |
MethExecutorResult(java.lang.Object result) |
MethExecutorResult(java.lang.Throwable thr)
This constructor is invoked when invoking a method resulted in an
exception being thrown.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
exceptionOccurred()
Returns whether or not an exception occurred while invoking the
method
|
java.lang.Throwable |
getException()
Returns the exception that was thrown while invoking a method.
|
java.lang.String |
getExceptionClassName()
Returns the name of the exception class of the exception that
was thrown while invoking a method.
|
java.lang.String |
getExceptionMessage()
Returns the message of the exception that was thrown while
invoking a method.
|
java.lang.Object |
getResult()
Returns the result of the method call.
|
java.lang.String |
getStackTrace()
Returns the stack trace of the exception that was thrown while
invoking a method.
|
java.lang.String |
toString() |
public static final java.io.Serializable EXCEPTION_OCCURRED
public static final java.lang.Throwable NONSERIALIZABLE_EXCEPTION
public MethExecutorResult()
public MethExecutorResult(java.lang.Object result)
public MethExecutorResult(java.lang.Throwable thr)
EXCEPTION_OCCURRED. If the exception could not be serialized,
getException() will return IOException with the exception
stack as the message.public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.Object getResult()
EXCEPTION_OCCURRED is
returned.exceptionOccurred()public java.lang.String getExceptionClassName()
null is returned.public java.lang.String getExceptionMessage()
null
is returned.public java.lang.String getStackTrace()
null
is returned.public java.lang.Throwable getException()
NONSERIALIZABLE_EXCEPTION is returned. If no exception was
thrown, null is returned.public boolean exceptionOccurred()