|
Expresso 5-5-0 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
com.jcorporate.expresso.kernel.exception.ChainedException
com.jcorporate.expresso.core.misc.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)
| 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 |
public ChainedException()
public ChainedException(String s)
s - The exception message
public ChainedException(String s,
int newErrorNumber)
public ChainedException(String message,
Throwable newNested)
newNested - The nested item
public ChainedException(String message,
Throwable newNested,
int newErrorNumber)
newNested - The nested itempublic ChainedException(Throwable newNested)
newNested - The nested exception
public ChainedException(Throwable newNested,
int newErrorNumber)
newNested - The nested exception| Method Detail |
public String getMessage()
getMessage in class ChainedExceptionpublic int getErrorNumber()
getErrorNumber in class ChainedExceptionpublic void printStackTrace()
printStackTrace in class ChainedExceptionpublic void printStackTrace(PrintStream p)
printStackTrace in class ChainedExceptionp - The PrintStream to write the exception messages intopublic void printStackTrace(PrintWriter p)
printStackTrace in class ChainedExceptionp - The PrintWriter to write the exception messages intopublic Throwable getNested()
getNested in class ChainedException
|
Expresso 5-5-0 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||