Class TaskExecutionException

  • All Implemented Interfaces:
    com.inet.error.HasErrorCode, java.io.Serializable

    public class TaskExecutionException
    extends com.inet.error.BaseException
    Signals that the execution of a Job or ResultAction faced an error which it cannot handle.

    Such an error will be visible in the executionHistory of the task.

    Since:
    taskplanner 3.0
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      TaskExecutionException​(int errorNumber, java.lang.String msg, java.lang.Throwable cause, java.lang.Object... parameters)
      Constructs a new exception with the specified detail message and cause.
      TaskExecutionException​(com.inet.error.ErrorCode errorCode, java.lang.Throwable cause, java.lang.Object... parameters)
      Constructs a new exception with the specified detail message and cause.
      TaskExecutionException​(java.lang.Throwable cause)
      Create a wrapped exception.
      TaskExecutionException​(java.lang.Throwable cause, com.inet.error.ErrorCode defaultErrorCode)
      Create a wrapped exception.
    • Method Summary

      • Methods inherited from class com.inet.error.BaseException

        getErrorCode
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • TaskExecutionException

        public TaskExecutionException​(com.inet.error.ErrorCode errorCode,
                                      java.lang.Throwable cause,
                                      java.lang.Object... parameters)
        Constructs a new exception with the specified detail message and cause.
        Parameters:
        errorCode - the error code
        cause - the cause (which is saved for later retrieval by the getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
        parameters - message parameter
        Since:
        taskplanner 3.0
      • TaskExecutionException

        public TaskExecutionException​(int errorNumber,
                                      java.lang.String msg,
                                      java.lang.Throwable cause,
                                      java.lang.Object... parameters)
        Constructs a new exception with the specified detail message and cause.
        Parameters:
        errorNumber - the error number
        msg - the message template if errorNumber can not be found
        cause - the cause (which is saved for later retrieval by the getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
        parameters - message parameter
        Since:
        taskplanner 3.0
      • TaskExecutionException

        public TaskExecutionException​(java.lang.Throwable cause,
                                      com.inet.error.ErrorCode defaultErrorCode)
        Create a wrapped exception. If cause is instance of HasErrorCode then that error code and message is used. In the other case the default error code is used with a user friendly message from the cause as parameter.
        Parameters:
        cause - the cause to wrap
        defaultErrorCode - the errorcode is only used as fallback if the cause has none.
        Since:
        taskplanner 3.0
      • TaskExecutionException

        public TaskExecutionException​(java.lang.Throwable cause)
        Create a wrapped exception. If cause is instance of HasErrorCode then that error code and message is used. In the other case the TaskPlannerCodes.GenericExecutionError code is used with a user friendly message from the cause as parameter. You should use this constructor only for really unexpected errors, for expected errors use an other constructor and provide a meaningful error code!
        Parameters:
        cause - the cause to wrap
        Since:
        taskplanner 3.0