Class TaskExecutionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.inet.error.BaseException
com.inet.taskplanner.server.api.error.TaskExecutionException
- All Implemented Interfaces:
com.inet.error.HasErrorCode, 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 execution history of the task.
- Since:
- taskplanner 3.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionTaskExecutionException(int errorNumber, String msg, Throwable cause, Object... parameters) Constructs a new exception with the specified detail message and cause.TaskExecutionException(com.inet.error.ErrorCode errorCode, Throwable cause, Object... parameters) Constructs a new exception with the specified detail message and cause.TaskExecutionException(Throwable cause) Creates a wrapped exception.TaskExecutionException(Throwable cause, com.inet.error.ErrorCode defaultErrorCode) Creates a wrapped exception. -
Method Summary
Methods inherited from class com.inet.error.BaseException
getErrorCodeMethods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
TaskExecutionException
public TaskExecutionException(com.inet.error.ErrorCode errorCode, Throwable cause, Object... parameters) Constructs a new exception with the specified detail message and cause.- Parameters:
errorCode- the error codecause- 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
Constructs a new exception with the specified detail message and cause.- Parameters:
errorNumber- the error numbermsg- the message template if errorNumber cannot be foundcause- 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
Creates a wrapped exception. If the cause is an instance of HasErrorCode, that error code and message are used. In other cases, the default error code is used with a user-friendly message from the cause as a parameter.- Parameters:
cause- the cause to wrapdefaultErrorCode- the error code to use as a fallback if the cause has none.- Since:
- taskplanner 3.0
-
TaskExecutionException
Creates a wrapped exception. If the cause is an instance of HasErrorCode, that error code and message are used. In other cases, theTaskPlannerCodes.GenericExecutionErrorcode is used with a user-friendly message from the cause as a parameter. You should use this constructor only for unexpected errors; for expected errors, use another constructor and provide a meaningful error code!- Parameters:
cause- the cause to wrap- Since:
- taskplanner 3.0
-