Package org.jppf.server.node
Interface SerializationExceptionHook
- All Known Implementing Classes:
DefaultSerializationExceptionHook
public interface SerializationExceptionHook
This interface represents a hook invoked when the serialization of a task raises an exception.
- Author:
- Laurent Cohen
-
Method Summary
Modifier and TypeMethodDescriptionorg.jppf.node.protocol.JPPFExceptionResultbuildExceptionResult(Object task, Throwable t) Build theJPPFExceptionResulttask that will be returned instead of the user task.
-
Method Details
-
buildExceptionResult
Build theJPPFExceptionResulttask that will be returned instead of the user task.- 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.
-