Main Page   Packages   Namespace List   Class Hierarchy   Compound List   Compound Members  

JDOMException Class Reference

Inheritance diagram for JDOMException::

DataConversionException List of all members.

Public Methods

 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 ()

Protected Attributes

Throwable cause

Detailed Description

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.

Author:
Brett McLaughlin , Jason Hunter
Version:
Revision:
1.11
,
Date:
2002/01/08 09:17:10


Constructor & Destructor Documentation

JDOMException::JDOMException   [inline]
 

This will create an Exception.

JDOMException::JDOMException String    message [inline]
 

This will create an Exception with the given message.

Parameters:
message  String message indicating the problem that occurred.

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 JDOMException::getCause   [inline]
 

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

Returns:
Throwable - the wrapped Throwable.

String 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 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.

void JDOMException::printStackTrace PrintWriter    w [inline]
 

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.

void JDOMException::printStackTrace PrintStream    s [inline]
 

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.

void 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.


Member Data Documentation

Throwable JDOMException::cause [protected]
 

A wrapped Throwable


The documentation for this class was generated from the following file:
Generated on Sat Mar 30 18:53:03 2002 for JDOM by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001