org.jdom
Class JDOMException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--org.jdom.JDOMException
Direct Known Subclasses:
DataConversionException, NoSuchAttributeException, NoSuchElementException, NoSuchProcessingInstructionException

public class JDOMException
extends java.lang.Exception

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.

Version:
1.0
Author:
Brett McLaughlin, Jason Hunter
See Also:
Serialized Form

Field Summary
protected  java.lang.Throwable rootCause
          A wrapped Throwable
 
Constructor Summary
JDOMException()
           This will create an Exception.
JDOMException(java.lang.String message)
           This will create an Exception with the given message.
JDOMException(java.lang.String message, java.lang.Throwable rootCause)
           This will create an Exception with the given message and wrap another Exception.
 
Method Summary
 java.lang.Throwable getRootCause()
           This will return the root cause Throwable, or null if one does not exist.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

rootCause

protected java.lang.Throwable rootCause
A wrapped Throwable
Constructor Detail

JDOMException

public JDOMException()

This will create an Exception.


JDOMException

public JDOMException(java.lang.String message)

This will create an Exception with the given message.

Parameters:
message - String message indicating the problem that occurred.

JDOMException

public JDOMException(java.lang.String message,
                     java.lang.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.

Parameters:
message - String message indicating the problem that occurred.
exception - Exception that caused this to be thrown.
Method Detail

getRootCause

public java.lang.Throwable getRootCause()

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

Returns:
Throwable - the wrapped Throwable.


Copyright © 2000 Brett McLaughlin, Jason Hunter. All Rights Reserved.