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 Type
    Method
    Description
    org.jppf.node.protocol.JPPFExceptionResult
    Build the JPPFExceptionResult task that will be returned instead of the user task.
  • Method Details

    • buildExceptionResult

      org.jppf.node.protocol.JPPFExceptionResult buildExceptionResult(Object task, Throwable t)
      Build the JPPFExceptionResult task 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.