blackboard.base
Class NestedException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by blackboard.base.NestedException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
InitializationException, PersistenceException, PlugInException

public abstract class NestedException
extends java.lang.Exception

Base exception class for application specific exceptions that wish to hide the underlying exceptions. The original exception is be nested inside this exception so that the application can view details of the problem. This allows the application to be sheilded from the multiple types of exceptions that can be generated from different underlying implementations.

Since:
Bb 5.5
Version:
$Revision: #1 $ $Date: 2005/06/27 $
See Also:
Serialized Form

Field Summary
protected  java.lang.Throwable _nestedException
           
 
Constructor Summary
NestedException(java.lang.String msg)
          Constructor
NestedException(java.lang.String msg, java.lang.Throwable nestedException)
          Constructor
NestedException(java.lang.Throwable nestedException)
          Constructor
 
Method Summary
 java.lang.String getFullMessageTrace()
           
 java.lang.Throwable getNestedException()
          Returns Throwable
 void printStackTrace()
          Prints stack trace to log.
 void printStackTrace(java.io.PrintStream s)
          printStackTrace
 void printStackTrace(java.io.PrintWriter s)
          Prints stack trace to given PrintWriter.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_nestedException

protected java.lang.Throwable _nestedException
Constructor Detail

NestedException

public NestedException(java.lang.String msg)
Constructor


NestedException

public NestedException(java.lang.Throwable nestedException)
Constructor


NestedException

public NestedException(java.lang.String msg,
                       java.lang.Throwable nestedException)
Constructor

Method Detail

getNestedException

public java.lang.Throwable getNestedException()
Returns Throwable


printStackTrace

public void printStackTrace()
Prints stack trace to log.

Overrides:
printStackTrace in class java.lang.Throwable

printStackTrace

public void printStackTrace(java.io.PrintStream s)
printStackTrace

Overrides:
printStackTrace in class java.lang.Throwable

getFullMessageTrace

public java.lang.String getFullMessageTrace()

printStackTrace

public void printStackTrace(java.io.PrintWriter s)
Prints stack trace to given PrintWriter.

Overrides:
printStackTrace in class java.lang.Throwable


Copyright © 2003 Blackboard, Inc. All Rights Reserved.