Expresso 5-5-0

com.jcorporate.expresso.core.misc
Class ChainedException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended bycom.jcorporate.expresso.kernel.exception.ChainedException
              extended bycom.jcorporate.expresso.core.misc.ChainedException
All Implemented Interfaces:
Serializable

Deprecated. to be moved: use com.jcorporate.expresso.kernel.exception.ChainedException instead.

public class ChainedException
extends ChainedException

Enhanced Exception class to allow Exception chaining. This helps indicate the origin of an exception more clearly than simply passing on the original message Creation date: (4/15/00 5:47:38 PM)

Version:
$Revision: 1.10 $ $Date: 2003/10/01 01:18:34 $
Author:
Michael Nash
See Also:
Serialized Form

Constructor Summary
ChainedException()
          Deprecated. Normal no-args constructor
ChainedException(String s)
          Deprecated. Normal constructor with a single message
ChainedException(String s, int newErrorNumber)
          Deprecated. Specify an error number
ChainedException(String message, Throwable newNested)
          Deprecated. Constructor with a single message and a nested exception
ChainedException(String message, Throwable newNested, int newErrorNumber)
          Deprecated. Constructor with a single message and a nested exception with error number
ChainedException(Throwable newNested)
          Deprecated. Constructor with no message and a nested exception
ChainedException(Throwable newNested, int newErrorNumber)
          Deprecated. Constructor with no message and a nested exception, but with an error number
 
Method Summary
 int getErrorNumber()
          Deprecated. Return the error number if one was supplied
 String getMessage()
          Deprecated. Extend getMessage to return the nested message (if any) if we don't have one
 Throwable getNested()
          Deprecated. Retrieve the nested exception
 void printStackTrace()
          Deprecated. Extend printStackTrace to handle the nested exception correctly.
 void printStackTrace(PrintStream p)
          Deprecated. Extend printStackTrace to handle the nested Exception
 void printStackTrace(PrintWriter p)
          Deprecated. Extend printStackTrace to handle the nested Exception
 
Methods inherited from class com.jcorporate.expresso.kernel.exception.ChainedException
omitPackages
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ChainedException

public ChainedException()
Deprecated. 
Normal no-args constructor


ChainedException

public ChainedException(String s)
Deprecated. 
Normal constructor with a single message

Parameters:
s - The exception message

ChainedException

public ChainedException(String s,
                        int newErrorNumber)
Deprecated. 
Specify an error number


ChainedException

public ChainedException(String message,
                        Throwable newNested)
Deprecated. 
Constructor with a single message and a nested exception

Parameters:
newNested - The nested item

ChainedException

public ChainedException(String message,
                        Throwable newNested,
                        int newErrorNumber)
Deprecated. 
Constructor with a single message and a nested exception with error number

Parameters:
newNested - The nested item

ChainedException

public ChainedException(Throwable newNested)
Deprecated. 
Constructor with no message and a nested exception

Parameters:
newNested - The nested exception

ChainedException

public ChainedException(Throwable newNested,
                        int newErrorNumber)
Deprecated. 
Constructor with no message and a nested exception, but with an error number

Parameters:
newNested - The nested exception
Method Detail

getMessage

public String getMessage()
Deprecated. 
Extend getMessage to return the nested message (if any) if we don't have one

Overrides:
getMessage in class ChainedException
Returns:

getErrorNumber

public int getErrorNumber()
Deprecated. 
Return the error number if one was supplied

Overrides:
getErrorNumber in class ChainedException
Returns:
integer: the error number specified (or zero if non was specified)

printStackTrace

public void printStackTrace()
Deprecated. 
Extend printStackTrace to handle the nested exception correctly.

Overrides:
printStackTrace in class ChainedException

printStackTrace

public void printStackTrace(PrintStream p)
Deprecated. 
Extend printStackTrace to handle the nested Exception

Overrides:
printStackTrace in class ChainedException
Parameters:
p - The PrintStream to write the exception messages into

printStackTrace

public void printStackTrace(PrintWriter p)
Deprecated. 
Extend printStackTrace to handle the nested Exception

Overrides:
printStackTrace in class ChainedException
Parameters:
p - The PrintWriter to write the exception messages into

getNested

public Throwable getNested()
Deprecated. 
Retrieve the nested exception

Overrides:
getNested in class ChainedException
Returns:

Expresso 5-5-0

Please see www.jcorporate.com for information about new Expresso releases.