Package org.jdom
Class JDOMException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.jdom.JDOMException
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
DataConversionException,JDOMParseException,XSLTransformException
public class JDOMException extends Exception
The top level 'checked' exception that JDOM classes can throw. JDOM does throw a number of unchecked exceptions, but all the checked exceptions are descendants of this class.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description JDOMException()This will create anException.JDOMException(String message)This will create anExceptionwith the given message.JDOMException(String message, Throwable cause)This will create anExceptionwith the given message and wrap anotherException.
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
JDOMException
public JDOMException()
This will create anException.
-
JDOMException
public JDOMException(String message)
This will create anExceptionwith the given message.- Parameters:
message-Stringmessage indicating the problem that occurred.
-
JDOMException
public JDOMException(String message, Throwable cause)
This will create anExceptionwith the given message and wrap anotherException. This is useful when the originatingExceptionshould be held on to.- Parameters:
message-Stringmessage indicating the problem that occurred.cause-Throwablethat caused this to be thrown.
-
-