com.boylesoftware.cb2
Class ApplicationException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended bycom.boylesoftware.cb2.ApplicationException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
BLException

public class ApplicationException
extends java.lang.Exception

CB2 exception generated on the application context level. All exceptions in CB2, most notably BLException and subclasses, extend this generic application exception class. Applications can have their own specific subclasses of ApplicationException for errors that happen somewhere outside the Business Level, usually some really low-level errors, but such a need arises very rarely. Usually, you extend BLException instead.

Version:
$Id: ApplicationException.java,v 1.2 2004/04/16 21:43:27 levahim Exp $
Author:
Lev Himmelfarb
See Also:
Serialized Form

Constructor Summary
ApplicationException(java.lang.String message)
          Constructs a new exception with an error message.
ApplicationException(java.lang.String message, java.lang.Throwable cause)
          Constructs a new exception with an error message and a throwable, which is the root cause of this error.
 
Method Summary
 java.lang.String toString()
          Gets string representation of this exception's description including verbose description of its cause with the stack trace.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ApplicationException

public ApplicationException(java.lang.String message)
Constructs a new exception with an error message.

Parameters:
message - the error description.

ApplicationException

public ApplicationException(java.lang.String message,
                            java.lang.Throwable cause)
Constructs a new exception with an error message and a throwable, which is the root cause of this error.

Parameters:
message - the error description.
cause - the original cause of this exception.
Method Detail

toString

public java.lang.String toString()
Gets string representation of this exception's description including verbose description of its cause with the stack trace.

Returns:
the exception's verbose desription.


Copyright © 2002,2003,2004 - Boyle Software, Inc.