| java.lang.Object java.lang.Throwable java.lang.Exception org.jdom.JDOMException
All known Subclasses: org.jdom.DataConversionException, org.jdom.transform.XSLTransformException, org.jdom.input.JDOMParseException,
JDOMException | public class JDOMException extends Exception (Code) | | The top level exception that JDOM classes can throw. Its subclasses add
specificity to the problems that can occur using JDOM. This single exception
can be caught to handle all JDOM specific problems (some methods may throw
java.io.IOException and such).
version: $Revision: 1.1 $, $Date: 2005/04/27 09:32:38 $ author: Brett McLaughlin author: Jason Hunter |
Method Summary | |
public Throwable | getCause() This will return the root cause Throwable , or null
if one does not exist. | public String | getMessage() This returns the message for the Exception . | public Throwable | initCause(Throwable cause) Intializes the cause of this exception to be the specified value.
Parameters: cause - Throwable that caused thisto be thrown. | public void | printStackTrace() This prints the stack trace of the Exception . | public void | printStackTrace(PrintStream s) Prints the stack trace of the Exception to the given
PrintStream. | public void | printStackTrace(PrintWriter w) Prints the stack trace of the Exception to the given
PrintWriter. |
JDOMException | public JDOMException()(Code) | | This will create an Exception .
|
JDOMException | public JDOMException(String message)(Code) | | This will create an Exception with the given message.
Parameters: message - String message indicatingthe problem that occurred. |
JDOMException | public JDOMException(String message, Throwable cause)(Code) | | 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.
Parameters: message - String message indicatingthe problem that occurred. Parameters: cause - Throwable that caused thisto be thrown. |
getCause | public Throwable getCause()(Code) | | This will return the root cause Throwable , or null
if one does not exist.
Throwable - the wrapped Throwable . |
getMessage | public String getMessage()(Code) | | This returns the message for the Exception . If
there are one or more nested exceptions, their messages
are appended.
String - message for Exception . |
initCause | public Throwable initCause(Throwable cause)(Code) | | Intializes the cause of this exception to be the specified value.
Parameters: cause - Throwable that caused thisto be thrown. a pointer to this throwable |
printStackTrace | public void printStackTrace()(Code) | | 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.
|
printStackTrace | public void printStackTrace(PrintStream s)(Code) | | 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.
Parameters: s - PrintStream to print to |
printStackTrace | public void printStackTrace(PrintWriter w)(Code) | | 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.
Parameters: w - PrintWriter to print to |
|
|