public class JDOMException extends Exception
IOException and such).| Constructor and Description |
|---|
JDOMException()
This will create an
Exception. |
JDOMException(String message)
This will create an
Exception with the given message. |
JDOMException(String message,
Throwable cause)
This will create an
Exception with the given message
and wrap another Exception. |
| Modifier and Type | Method and Description |
|---|---|
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)
Intializes 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. |
addSuppressed, fillInStackTrace, getLocalizedMessage, getStackTrace, getSuppressed, setStackTrace, toStringpublic JDOMException()
Exception.public JDOMException(String message)
Exception with the given message.message - String message indicating
the problem that occurred.public JDOMException(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.public Throwable initCause(Throwable cause)
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 toCopyright © 2012 JBoss by Red Hat. All Rights Reserved.