Package org.jdom2
Class JDOMException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.jdom2.JDOMException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
DataConversionException,JDOMParseException,XSLTransformException
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.
- Author:
- Brett McLaughlin, Jason Hunter
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionThis 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 Details
-
JDOMException
public JDOMException()This will create anException. -
JDOMException
This will create anExceptionwith the given message.- Parameters:
message-Stringmessage indicating the problem that occurred.
-
JDOMException
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.
-