Top Description Fields Constructors
org.jdom2

public Class JDOMException

extends Exception
Class Inheritance
Known Direct Subclasses
org.jdom2.input.JDOMParseException, org.jdom2.transform.XSLTransformException, org.jdom2.DataConversionException

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.
Authors
Brett McLaughlin, Jason Hunter

Field Summary

Modifier and TypeField and Description
private static final long
serialVersionUID

Hides java.lang.Exception.serialVersionUID.

Standard JDOM2 Exception Serialization.

Constructor Summary

AccessConstructor and Description
public
JDOMException()

This will create an Exception.

public
JDOMException(String
String message indicating the problem that occurred.
message
)

This will create an Exception with the given message.

public
JDOMException(String
String message indicating the problem that occurred.
message
,
Throwable
Throwable that caused this to be thrown.
cause
)

This will create an Exception with the given message and wrap another Exception.

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.lang.Exception.serialVersionUID.

Standard JDOM2 Exception Serialization. Default.

Constructor Detail

JDOMExceptionback to summary
public JDOMException()

This will create an Exception.

JDOMExceptionback to summary
public JDOMException(String message)

This will create an Exception with the given message.

Parameters
message:String

String message indicating the problem that occurred.

JDOMExceptionback to summary
public JDOMException(String message, Throwable cause)

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

String message indicating the problem that occurred.

cause:Throwable

Throwable that caused this to be thrown.