com.ail.core
Class BaseException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.ail.core.BaseException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
BeanShellServiceException, CreateException, DroolsServiceException, JaninoServiceException, JMSServiceException, LoadException, NameNotFoundException, PostconditionException, PreconditionException, QueryException, RenderException, SectionNotFoundException, UpdateException, VersionException, XMLException, XSLTServiceException

public abstract class BaseException
extends java.lang.Exception

This Exception class represents the base of all bob exceptions; which indicate conditions within bob that applications might want to catch.

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

Constructor Summary
BaseException(BaseError e)
          Constructor Build a BaseException from a BaseError.
BaseException(java.lang.String description)
          Constructor
BaseException(java.lang.String description, java.lang.Throwable target)
          Constructor
 
Method Summary
 void addError(java.lang.String s)
          Add an error to the error list.
 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()
          Convert this exception into a string
 
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

BaseException

public BaseException(java.lang.String description)
Constructor

Parameters:
description - A description of the error.

BaseException

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

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

BaseException

public BaseException(BaseError e)
Constructor Build a BaseException from a BaseError.

Parameters:
e - BaseError to be converted.
Method Detail

getDescription

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

Returns:
description

addError

public void addError(java.lang.String s)
Add an error to the error list. A BaseException may list more that one 'sub-error'.

Parameters:
s - Error message

toString

public java.lang.String toString()
Convert this exception into a string

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

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