Class JPPFExceptionResultEx

All Implemented Interfaces:
Serializable, Runnable, Interruptibility, PositionalElement<Task<Object>>, Task<Object>

public class JPPFExceptionResultEx extends JPPFExceptionResult
Author:
Laurent Cohen
See Also:
  • Field Details

    • throwableMessage

      protected String throwableMessage
      These fields describe the Throwable object.
    • throwableClassName

      protected String throwableClassName
      These fields describe the Throwable object.
    • throwableStackTrace

      protected StackTraceElement[] throwableStackTrace
      The throwable object's stack trace.
  • Constructor Details

    • JPPFExceptionResultEx

      public JPPFExceptionResultEx()
      Default constructor provided as a convenience for subclassing.
    • JPPFExceptionResultEx

      public JPPFExceptionResultEx(Throwable throwable, Object object)
      Initialize this task with the specified error context.
      Parameters:
      throwable - the throwable that is to be captured.
      object - the object on which the throwable applies.
  • Method Details

    • getThrowableMessage

      public String getThrowableMessage()
      Get the message of the throwable.
      Returns:
      the message as a string.
    • getThrowableStackTrace

      public StackTraceElement[] getThrowableStackTrace()
      Get the stack trace of the throwable.
      Returns:
      the stack trace as an array of StackTraceElements.
    • getThrowableClassName

      public String getThrowableClassName()
      Get the class name of the throwable.
      Returns:
      the class name as a string.