Package org.jppf.node.protocol
Class JPPFExceptionResultEx
java.lang.Object
org.jppf.node.protocol.AbstractTask<Object>
org.jppf.node.protocol.JPPFExceptionResult
org.jppf.node.protocol.JPPFExceptionResultEx
- All Implemented Interfaces:
Serializable,Runnable,Interruptibility,PositionalElement<Task<Object>>,Task<Object>
- Author:
- Laurent Cohen
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringThese fields describe theThrowableobject.protected StringThese fields describe theThrowableobject.protected StackTraceElement[]The throwable object's stack trace.Fields inherited from class org.jppf.node.protocol.JPPFExceptionResult
className, objectDescriptor -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor provided as a convenience for subclassing.JPPFExceptionResultEx(Throwable throwable, Object object) Initialize this task with the specified error context. -
Method Summary
Modifier and TypeMethodDescriptionGet the class name of the throwable.Get the message of the throwable.Get the stack trace of the throwable.Methods inherited from class org.jppf.node.protocol.JPPFExceptionResult
getObjectDescriptor, getTaskClassName, run, toStringMethods inherited from class org.jppf.node.protocol.AbstractTask
compute, fireNotification, getDataProvider, getId, getJob, getMaxResubmits, getNode, getPosition, getResult, getTaskClassLoader, getTaskObject, getThrowable, getTimeoutSchedule, isInNode, isInterruptible, isResubmit, onCancel, onTimeout, setDataProvider, setExecutionDispatcher, setId, setInNode, setJob, setMaxResubmits, setNode, setPosition, setResubmit, setResult, setThrowable, setTimeoutSchedule
-
Field Details
-
throwableMessage
These fields describe theThrowableobject. -
throwableClassName
These fields describe theThrowableobject. -
throwableStackTrace
The throwable object's stack trace.
-
-
Constructor Details
-
JPPFExceptionResultEx
public JPPFExceptionResultEx()Default constructor provided as a convenience for subclassing. -
JPPFExceptionResultEx
Initialize this task with the specified error context.- Parameters:
throwable- the throwable that is to be captured.object- the object on which the throwable applies.
-
-
Method Details
-
getThrowableMessage
Get the message of the throwable.- Returns:
- the message as a string.
-
getThrowableStackTrace
Get the stack trace of the throwable.- Returns:
- the stack trace as an array of
StackTraceElements.
-
getThrowableClassName
Get the class name of the throwable.- Returns:
- the class name as a string.
-