Main Page | Class Hierarchy | Class List | Class Members

org::jdom::JDOMException Class Reference

Inheritance diagram for org::jdom::JDOMException:

org::jdom::DataConversionException org::jdom::input::JDOMParseException org::jdom::transform::XSLTransformException List of all members.

Public Member Functions

 JDOMException ()
 JDOMException (String message)
 JDOMException (String message, Throwable cause)
Throwable initCause (Throwable cause)
String getMessage ()
void printStackTrace ()
void printStackTrace (PrintStream s)
void printStackTrace (PrintWriter w)
Throwable getCause ()

Detailed Description

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.23
,
Date
2004/02/27 11:32:57
Author:
Brett McLaughlin

Jason Hunter


Constructor & Destructor Documentation

org::jdom::JDOMException::JDOMException  )  [inline]
 

This will create an Exception.

org::jdom::JDOMException::JDOMException String  message  )  [inline]
 

This will create an Exception with the given message.

Parameters:
message String message indicating the problem that occurred.

org::jdom::JDOMException::JDOMException String  message,
Throwable  cause
[inline]
 

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 indicating the problem that occurred.
cause Throwable that caused this to be thrown.


Member Function Documentation

Throwable org::jdom::JDOMException::getCause  )  [inline]
 

This will return the root cause Throwable, or null if one does not exist.

Returns:
Throwable - the wrapped Throwable.

String org::jdom::JDOMException::getMessage  )  [inline]
 

This returns the message for the Exception. If there are one or more nested exceptions, their messages are appended.

Returns:
String - message for Exception.

Throwable org::jdom::JDOMException::initCause Throwable  cause  )  [inline]
 

Intializes the cause of this exception to be the specified value.

Parameters:
cause Throwable that caused this to be thrown.
Returns:
a pointer to this throwable

void org::jdom::JDOMException::printStackTrace PrintWriter  w  )  [inline]
 

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

void org::jdom::JDOMException::printStackTrace PrintStream  s  )  [inline]
 

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

void org::jdom::JDOMException::printStackTrace  )  [inline]
 

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.


The documentation for this class was generated from the following file:
Generated on Thu Dec 9 10:42:04 2004 for JDOM by  doxygen 1.3.9.1