|
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
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()
Normal no-args constructor |
|
ChainedException(String s)
Normal constructor with a single message |
|
ChainedException(String s,
int newErrorNumber)
Specify an error number |
|
ChainedException(String message,
Throwable newNested)
Constructor with a single message and a nested exception |
|
ChainedException(String message,
Throwable newNested,
int newErrorNumber)
Constructor with a single message and a nested exception with error number |
|
ChainedException(Throwable newNested)
Constructor with no message and a nested exception |
|
ChainedException(Throwable newNested,
int newErrorNumber)
Constructor with no message and a nested exception, but with an error number |
|
| Method Summary | |
int |
getErrorNumber()
Return the error number if one was supplied |
String |
getMessage()
Extend getMessage to return the nested message (if any) if we don't have one |
Throwable |
getNested()
Retrieve the nested exception |
static String |
omitPackages(Object obj)
utility to get just name of class |
void |
printStackTrace()
Extend printStackTrace to handle the nested exception correctly. |
void |
printStackTrace(PrintStream p)
Extend printStackTrace to handle the nested Exception |
void |
printStackTrace(PrintWriter p)
Extend printStackTrace to handle the nested Exception |
| 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)
s - the messagenewErrorNumber - The error number to assign
public ChainedException(String message,
Throwable newNested)
message - The exception messagenewNested - The nested item
public ChainedException(String message,
Throwable newNested,
int newErrorNumber)
message - The exception messagenewNested - The nested itemnewErrorNumber - the error number associated with the exceptionpublic ChainedException(Throwable newNested)
newNested - The nested exception
public ChainedException(Throwable newNested,
int newErrorNumber)
newNested - The nested exceptionnewErrorNumber - the error number associated with the exception message| Method Detail |
public String getMessage()
public static String omitPackages(Object obj)
obj - the object of the given class, the name of which will be returned
public int getErrorNumber()
public void printStackTrace()
public void printStackTrace(PrintStream p)
p - The PrintStream to write the exception messages intopublic void printStackTrace(PrintWriter p)
p - The PrintWriter to write the exception messages intopublic Throwable getNested()
|
Expresso 5-5-0 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||