Package org.jppf.server.node
Class DefaultSerializationExceptionHook
java.lang.Object
org.jppf.server.node.DefaultSerializationExceptionHook
- All Implemented Interfaces:
SerializationExceptionHook
This default hook is used when none is specified in the node configuration.
- Author:
- Laurent Cohen
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.jppf.node.protocol.JPPFExceptionResultbuildExceptionResult(Object task, Throwable t) Build theJPPFExceptionResulttask that will be returned instead of the user task.
-
Constructor Details
-
DefaultSerializationExceptionHook
public DefaultSerializationExceptionHook()
-
-
Method Details
-
buildExceptionResult
Description copied from interface:SerializationExceptionHookBuild theJPPFExceptionResulttask that will be returned instead of the user task.- Specified by:
buildExceptionResultin interfaceSerializationExceptionHook- Parameters:
task- the user task which can't be serialized.t- the throwable raised whil eattempting to serialize the user task.- Returns:
- an instance of
JPPFExceptionResult.
-