|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
guarana.framework.task.TaskExecutionException
public class TaskExecutionException
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.
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 |
---|
public TaskExecutionException()
public TaskExecutionException(String message)
message
- The exception message.public TaskExecutionException(String message, Throwable exception)
message
- the exception message.exception
- the base exception to be used in this new exception object.public TaskExecutionException(Throwable exception)
exception
- the base exception to be used in this new exception object.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |