Package org.jdom2
Class DataConversionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.jdom2.JDOMException
org.jdom2.DataConversionException
- All Implemented Interfaces:
Serializable
Thrown when a data conversion from a string to value type fails, such as
can happen with the
Attribute
convenience getter functions.- Author:
- Brett McLaughlin, Jason Hunter
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDataConversionException
(String name, String dataType) Constructs an exception where the named construct couldn't be converted to the named data type. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
DataConversionException
Constructs an exception where the named construct couldn't be converted to the named data type.- Parameters:
name
- name of the construct whose value failed conversiondataType
- type the conversion was attempting to create
-