com.ail.core
Class BaseError

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Error
          extended by com.ail.core.BaseError
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
AccessorError, BootstrapConfigurationError, CarProcessingError, CommandInvocationError, ConfigurationError, ConfigurationUpdateCollisionError, ConnectionError, DuplicateAssessmentLineError, FactoryConfigurationError, NotImplementedError, TypeXPathException, UndefinedTypeError, ValidationError, XMLConfigurationError

public abstract class BaseError
extends java.lang.Error

This Error class represents the base of all bob errorss; which indicate conditions within bob that applications generally do not want to catch. They represent abnormal conditions that cannot be recovered from.

These error's may not be fatal to the application, but they do indicate some kind of system failure rather than a failure of business logic.

Version:
$Revision: 1.2 $
See Also:
Serialized Form

Constructor Summary
BaseError(BaseException e)
          Constructor Turn a BaseException into a BaseError
BaseError(java.lang.String description)
          Constructor
BaseError(java.lang.String description, java.lang.Throwable target)
          Constructor
 
Method Summary
 java.lang.String getDescription()
          Get the error description.
 void printStackTrace()
           
 void printStackTrace(java.io.PrintStream stream)
           
 void printStackTrace(java.io.PrintWriter writer)
           
 java.lang.String toString()
          Return a string representing this error.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BaseError

public BaseError(java.lang.String description)
Constructor

Parameters:
description - A description of the error.

BaseError

public BaseError(java.lang.String description,
                 java.lang.Throwable target)
Constructor

Parameters:
description - A description of the error.
target - The exception that caused this error to be thrown.

BaseError

public BaseError(BaseException e)
Constructor Turn a BaseException into a BaseError

Parameters:
e - BaseException to convert.
Method Detail

getDescription

public java.lang.String getDescription()
Get the error description. This description is a textual description of the error.

Returns:
description

toString

public java.lang.String toString()
Return a string representing this error.

Overrides:
toString in class java.lang.Throwable
Returns:
String representation of the error.

printStackTrace

public void printStackTrace()
Overrides:
printStackTrace in class java.lang.Throwable

printStackTrace

public void printStackTrace(java.io.PrintStream stream)
Overrides:
printStackTrace in class java.lang.Throwable

printStackTrace

public void printStackTrace(java.io.PrintWriter writer)
Overrides:
printStackTrace in class java.lang.Throwable