Class DefaultSerializationExceptionHook

java.lang.Object
org.jppf.server.node.DefaultSerializationExceptionHook
All Implemented Interfaces:
SerializationExceptionHook

public class DefaultSerializationExceptionHook extends Object implements SerializationExceptionHook
This default hook is used when none is specified in the node configuration.
Author:
Laurent Cohen
  • Constructor Details

    • DefaultSerializationExceptionHook

      public DefaultSerializationExceptionHook()
  • Method Details

    • buildExceptionResult

      public org.jppf.node.protocol.JPPFExceptionResult buildExceptionResult(Object task, Throwable t)
      Description copied from interface: SerializationExceptionHook
      Build the JPPFExceptionResult task that will be returned instead of the user task.
      Specified by:
      buildExceptionResult in interface SerializationExceptionHook
      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.