org.jppf.server.protocol
Class JPPFExceptionResult
java.lang.Object
org.jppf.server.protocol.JPPFTask
org.jppf.server.protocol.JPPFExceptionResult
- All Implemented Interfaces:
- Serializable, Runnable
public final class JPPFExceptionResult
- extends JPPFTask
Instances of this class are used to signal that a task could not be sent back by the node to the server.
This generally happens when a task cannot be serialized after its execution, or if a data transformation is
applied and fails with an exception. An instance of this class captures the context of the error, including the exception
that occurred, the object's toString() descriptor and its class name.
When such an error occurs, an instance of this class will be sent instead of the initial JPPF task.
- Author:
- Laurent Cohen
- See Also:
- Serialized Form
|
Method Summary |
void |
run()
Display the error context captured in this task. |
String |
toString()
Construct a string representation of this object. |
| Methods inherited from class org.jppf.server.protocol.JPPFTask |
addJPPFTaskListener, fireNotification, getDataProvider, getException, getId, getListeners, getPosition, getResult, getTaskObject, getTimeout, getTimeoutDate, getTimeoutDateFormat, getTimeoutFormat, getTimeoutSchedule, onCancel, onRestart, onTimeout, removeJPPFTaskListener, setDataProvider, setException, setId, setPosition, setResult, setTimeout, setTimeoutDate, setTimeoutDate, setTimeoutSchedule |
JPPFExceptionResult
public JPPFExceptionResult(Throwable throwable,
Object object)
- Initialize this task with the spepcifed error context.
- Parameters:
throwable - the throwable that is to be captured.object - the object on which the throwable applies.
run
public void run()
- Display the error context captured in this task.
- See Also:
Runnable.run()
toString
public String toString()
- Construct a string representation of this object.
- Overrides:
toString in class Object
- Returns:
- a string representing this JPPFExceptionResult.
- See Also:
Object.toString()
Copyright © 2005-2010 JPPF Team.