|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Exception org.apache.commons.latka.LatkaException
public class LatkaException
Latka throws this exception to the client whenever a problem occurs that is not covered by one of the standard JDK exceptions (validation errors, SAX problems, etc.)
Field Summary | |
---|---|
protected Exception |
_wrappedException
The original exception |
Constructor Summary | |
---|---|
LatkaException(Exception e)
Wrapped exception. |
|
LatkaException(String message)
Standard exception constructor |
Method Summary | |
---|---|
Exception |
getException()
Get a wrapped exception |
void |
printStackTrace()
provide wrapped exception details |
void |
printStackTrace(PrintStream s)
provide wrapped exception details |
void |
printStackTrace(PrintWriter s)
Print wrapped exception details, if any |
static void |
printWrappedExceptions(LatkaException e)
Print a wrapped exception to stdout and, in the case of SAXExceptions, an additional wrapped exception. |
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 |
---|
protected Exception _wrappedException
Constructor Detail |
---|
public LatkaException(String message)
message
- some text explaining the exceptionpublic LatkaException(Exception e)
e
- exception to wrapMethod Detail |
---|
public Exception getException()
public static void printWrappedExceptions(LatkaException e)
e
- LatkaException with wrapped messages.public void printStackTrace()
printStackTrace
in class Throwable
public void printStackTrace(PrintStream s)
printStackTrace
in class Throwable
s
- PrintStream to print topublic void printStackTrace(PrintWriter s)
printStackTrace
in class Throwable
s
- the print writer to send output to
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |