public class MethExecutorResult extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
static Serializable |
EXCEPTION_OCCURRED
A "result" object that indicates that an exception occurred
while invoking the method
|
static Throwable |
NONSERIALIZABLE_EXCEPTION
A "exception" object that indicates that an exception could not
be serialized.
|
| Constructor and Description |
|---|
MethExecutorResult() |
MethExecutorResult(Object result) |
MethExecutorResult(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
|
Throwable |
getException()
Returns the exception that was thrown while invoking a method.
|
String |
getExceptionClassName()
Returns the name of the exception class of the exception that
was thrown while invoking a method.
|
String |
getExceptionMessage()
Returns the message of the exception that was thrown while
invoking a method.
|
Object |
getResult()
Returns the result of the method call.
|
String |
getStackTrace()
Returns the stack trace of the exception that was thrown while
invoking a method.
|
String |
toString() |
public static final Serializable EXCEPTION_OCCURRED
public static final Throwable NONSERIALIZABLE_EXCEPTION
public MethExecutorResult()
public MethExecutorResult(Object result)
public MethExecutorResult(Throwable thr)
EXCEPTION_OCCURRED. If the exception could not be serialized,
getException() will return NONSERIALIZABLE_EXCEPTION.public Object getResult()
EXCEPTION_OCCURRED is
returned.exceptionOccurred()public String getExceptionClassName()
null is returned.public String getExceptionMessage()
null
is returned.public String getStackTrace()
null
is returned.public Throwable getException()
NONSERIALIZABLE_EXCEPTION is returned. If no exception was
thrown, null is returned.public boolean exceptionOccurred()
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.