com.ls.util.taskrun
Class TaskException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--com.ls.BaseException
                    |
                    +--com.ls.util.taskrun.TaskException
All Implemented Interfaces:
Serializable

public class TaskException
extends BaseException

This class represents a failure occured during execution of a Task.

Version:
$Revision: 1.0 $
Author:
Last modified by $Author: TZink $
See Also:
Serialized Form

Fields inherited from class com.ls.BaseException
innerThrowable
 
Constructor Summary
TaskException(String description)
          Create a new exception instance with an additional description of the particular error condition.
TaskException(String description, Throwable rootCause)
          Creates a new exception instance with an additional description and a nested exception.
 
Methods inherited from class com.ls.BaseException
getMessage, getNestedThrowable, printStackTrace, printStackTrace, printStackTrace
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TaskException

public TaskException(String description)
Create a new exception instance with an additional description of the particular error condition.

Parameters:
description - Description of the error condition.

TaskException

public TaskException(String description,
                     Throwable rootCause)
Creates a new exception instance with an additional description and a nested exception. This constructor is used, if a subsystem used inside the task throws an exception which should be reported to the caller of the task.

Parameters:
description - Decription of the error condition.
rootCause - The exception thrown by the subsystem inside the task.