| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Throwable | +--java.lang.Exception | +--org.jdom.JDOMException
JDOMException
This Exception
subclass is the top level
Exception
that JDOM classes
can throw. It's subclasses add specificity to the
problems that can occur using JDOM, but this single
Exception
can be caught to handle all
JDOM specific problems.
Constructor Summary | |
JDOMException() This will create an Exception . | |
JDOMException(String message) This will create an Exception with the given message. | |
JDOMException(String message, Throwable rootCause) This will create an Exception with the given message
and wrap another Exception . |
Method Summary | |
String | getMessage() This returns the message for the Exception . |
Throwable | getRootCause() This will return the root cause Throwable , or null
if one does not exist. |
void | printStackTrace() This prints the stack trace of the Exception . |
void | printStackTrace(PrintStream s) This prints the stack trace of the Exception to the given
PrintStream. |
void | printStackTrace(PrintWriter w) This prints the stack trace of the Exception to the given
PrintWriter. |
Methods inherited from class java.lang.Throwable |
getLocalizedMessage, toString, fillInStackTrace |
Methods inherited from class java.lang.Object |
getClass, hashCode, equals, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public JDOMException()
This will create an Exception
.
public JDOMException(String message)
This will create an Exception
with the given message.
String
message indicating
the problem that occurred.public JDOMException(String message, Throwable rootCause)
This will create an Exception
with the given message
and wrap another Exception
. This is useful when
the originating Exception
should be held on to.
String
message indicating
the problem that occurred.Exception
that caused this
to be thrown.Method Detail |
public String getMessage()
This returns the message for the Exception
. If
there is a root cause, the message associated with the root
Exception
is appended.
String
- message for Exception
.public Throwable getRootCause()
This will return the root cause Throwable
, or null
if one does not exist.
Throwable
- the wrapped Throwable
.public void printStackTrace()
This prints the stack trace of the Exception
. If
there is a root cause, the stack trace of the root
Exception
is printed right after.
public void printStackTrace(PrintStream s)
This prints the stack trace of the Exception
to the given
PrintStream. If there is a root cause, the stack trace of the root
Exception
is printed right after.
public void printStackTrace(PrintWriter w)
This prints the stack trace of the Exception
to the given
PrintWriter. If there is a root cause, the stack trace of the root
Exception
is printed right after.
Association Links |
Throwable
| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |