| java.lang.Object java.lang.Throwable java.lang.Exception com.jcorporate.expresso.kernel.exception.ChainedException
All known Subclasses: com.jcorporate.expresso.core.misc.ConfigurationException, com.jcorporate.expresso.services.validation.AuthValidationException, com.jcorporate.expresso.core.controller.ValidationException, com.jcorporate.expresso.core.cache.CacheException, com.jcorporate.expresso.ext.report.ReportException, com.jcorporate.expresso.core.db.DBException, com.jcorporate.expresso.kernel.exception.ExpressoRuntimeException, com.jcorporate.expresso.core.job.ServerException, com.jcorporate.expresso.core.controller.NonHandleableException, com.jcorporate.expresso.core.logging.LogException, com.jcorporate.expresso.core.controller.ControllerException, com.jcorporate.expresso.services.html.HtmlException,
ChainedException | public class ChainedException extends Exception (Code) | | 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)
author: Michael Nash |
ChainedException | public ChainedException()(Code) | | Normal no-args constructor
|
ChainedException | public ChainedException(String s)(Code) | | Normal constructor with a single message
Parameters: s - The exception message |
ChainedException | public ChainedException(String s, int newErrorNumber)(Code) | | Specify an error number
Parameters: s - the message Parameters: newErrorNumber - The error number to assign |
ChainedException | public ChainedException(String message, Throwable newNested)(Code) | | Constructor with a single message and a nested exception
Parameters: message - The exception message Parameters: newNested - The nested item |
ChainedException | public ChainedException(String message, Throwable newNested, int newErrorNumber)(Code) | | Constructor with a single message and a nested exception with error number
Parameters: message - The exception message Parameters: newNested - The nested item Parameters: newErrorNumber - the error number associated with the exception |
ChainedException | public ChainedException(Throwable newNested)(Code) | | Constructor with no message and a nested exception
Parameters: newNested - The nested exception |
ChainedException | public ChainedException(Throwable newNested, int newErrorNumber)(Code) | | Constructor with no message and a nested exception, but with an error number
Parameters: newNested - The nested exception Parameters: newErrorNumber - the error number associated with the exception message |
getErrorNumber | public int getErrorNumber()(Code) | | Return the error number if one was supplied
integer: the error number specified (or zero if non was specified) |
getMessage | public String getMessage()(Code) | | Extend getMessage to return the nested message (if any) if we don't have one
java.lang.String |
getNested | public Throwable getNested()(Code) | | Retrieve the nested exception
the nested Exception |
omitPackages | public static String omitPackages(Object obj)(Code) | | utility to get just name of class
Parameters: obj - the object of the given class, the name of which will be returned name of class, less any package prefix |
printStackTrace | public void printStackTrace()(Code) | | Extend printStackTrace to handle the nested exception correctly.
|
printStackTrace | public void printStackTrace(PrintStream p)(Code) | | Extend printStackTrace to handle the nested Exception
Parameters: p - The PrintStream to write the exception messages into |
printStackTrace | public void printStackTrace(PrintWriter p)(Code) | | Extend printStackTrace to handle the nested Exception
Parameters: p - The PrintWriter to write the exception messages into |
|
|