saker.build Documentation TaskDoc JavaDoc Packages
public class InvalidTaskResultException extends TaskExecutionException
Exception to represent the scenario when a task returns invalid value from its Task.run(TaskContext) method.

One scenario when this is thrown when the task calls TaskContext.abortExecution(Throwable), and doesn't return null from its worker method.

This exception can be also thrown when other methods of TaskFactory return invalid values.

See the exception message for more information.

Constructors
public
Creates a new exception for the given task identifier, exception message, and cause.
public
Creates a new exception for the given task identifier and exception message.
public
Creates a new exception for the given task identifier and cause.
public
Creates a new exception for the given task identifier.
public InvalidTaskResultException(String message, Throwable cause, TaskIdentifier taskIdentifier)
Documentation included from: TaskExecutionException
Creates a new exception for the given task identifier, exception message, and cause.
messageThe exception message.
causeThe exception that caused this one.
taskIdentifierThe related task identifier.
public InvalidTaskResultException(String message, TaskIdentifier taskIdentifier)
Documentation included from: TaskExecutionException
Creates a new exception for the given task identifier and exception message.
messageThe exception message.
taskIdentifierThe related task identifier.
Documentation included from: TaskExecutionException
Creates a new exception for the given task identifier and cause.
causeThe exception that caused this one.
taskIdentifierThe related task identifier.
Documentation included from: TaskExecutionException
Creates a new exception for the given task identifier.
taskIdentifierThe related task identifier.