|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.cdmckay.coffeedom.CoffeeDOMException
public class CoffeeDOMException
The top level exception that CoffeeDOM classes can throw. Its subclasses add specificity to the problems that can occur
using CoffeeDOM. This single exception can be caught to handle all CoffeeDOM specific problems (some methods may throw IOException and such).
| Constructor Summary | |
|---|---|
CoffeeDOMException()
This will create an Exception. |
|
CoffeeDOMException(String message)
This will create an Exception with the given message. |
|
CoffeeDOMException(String message,
Throwable cause)
This will create an Exception with the given message and wrap another Exception. |
|
| Method Summary | |
|---|---|
Throwable |
getCause()
This will return the root cause Throwable, or null if one does not exist. |
String |
getMessage()
This returns the message for the Exception. |
Throwable |
initCause(Throwable cause)
Initializes the cause of this exception to be the specified value. |
void |
printStackTrace()
This prints the stack trace of the Exception. |
void |
printStackTrace(PrintStream s)
Prints the stack trace of the Exception to the given PrintStream. |
void |
printStackTrace(PrintWriter w)
Prints the stack trace of the Exception to the given PrintWriter. |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getLocalizedMessage, getStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CoffeeDOMException()
Exception.
public CoffeeDOMException(String message)
Exception with the given message.
message - String message indicating the problem that occurred.
public CoffeeDOMException(String message,
Throwable cause)
Exception with the given message and wrap another Exception. This
is useful when the originating Exception should be held on to.
message - String message indicating the problem that occurred.cause - Throwable that caused this to be thrown.| Method Detail |
|---|
public Throwable initCause(Throwable cause)
initCause in class Throwablecause - Throwable that caused this to be thrown.
public String getMessage()
Exception. If there are one or more nested exceptions, their
messages are appended.
getMessage in class ThrowableString - message for Exception.public void printStackTrace()
Exception. If there is a root cause, the stack trace of the root
Exception is printed right after.
printStackTrace in class Throwablepublic void printStackTrace(PrintStream s)
Exception to the given PrintStream. If there is a root cause, the
stack trace of the root Exception is printed right after.
printStackTrace in class Throwables - PrintStream to print topublic void printStackTrace(PrintWriter w)
Exception to the given PrintWriter. If there is a root cause, the
stack trace of the root Exception is printed right after.
printStackTrace in class Throwablew - PrintWriter to print topublic Throwable getCause()
Throwable, or null if one does not exist.
getCause in class ThrowableThrowable - the wrapped Throwable.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||