org.jdom

Class DataConversionException

Implemented Interfaces:
Serializable

public class DataConversionException
extends JDOMException

Thrown when a data conversion from a string to value type fails, such as can happen with the Attribute convenience getter functions.
See Also:
Serialized Form

Constructor Summary

DataConversionException(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 org.jdom.JDOMException

getCause, getMessage, initCause, printStackTrace, printStackTrace, printStackTrace

Methods inherited from class java.lang.Throwable

fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString

Methods inherited from class java.lang.Object

clone, equals, extends Object> getClass, finalize, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Details

DataConversionException

public DataConversionException(String name,
                               String dataType)
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 conversion
dataType - type the conversion was attempting to create