guarana.framework.task
Class TaskExecutionException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by guarana.framework.task.TaskExecutionException
All Implemented Interfaces:
Serializable

public class TaskExecutionException
extends RuntimeException

A runtime exception and is used to:
(1) wrap any other exception that may be raised during a task execution;
(2) throw an exception that signals the task could not complete its execution.
Exceptions inside the execute method should be catch and treat individually, but it is convenient that the Task.execute() method also throws an object of this exception wrapping any other exception that may have had raised inside the method.
It is also convenient that inside the Task.execute() method the raised exception is also logged.

Since:
Guaranį SDK 1.0.0
Author:
Rafael Z. Frantz
See Also:
Serialized Form

Constructor Summary
TaskExecutionException()
          Constructs a new task execution exception.
TaskExecutionException(String message)
          Constructs a new task execution exception with a given message.
TaskExecutionException(String message, Throwable exception)
          Constructs a new task execution exception with a given message and from another exception.
TaskExecutionException(Throwable exception)
          Constructs a new task execution exception from another exception.
 
Method Summary
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TaskExecutionException

public TaskExecutionException()
Constructs a new task execution exception.


TaskExecutionException

public TaskExecutionException(String message)
Constructs a new task execution exception with a given message.

Parameters:
message - The exception message.

TaskExecutionException

public TaskExecutionException(String message,
                              Throwable exception)
Constructs a new task execution exception with a given message and from another exception.

Parameters:
message - the exception message.
exception - the base exception to be used in this new exception object.

TaskExecutionException

public TaskExecutionException(Throwable exception)
Constructs a new task execution exception from another exception.

Parameters:
exception - the base exception to be used in this new exception object.


Guaranį DSL Home