JDOM
2.0.5

org.jdom2
Class DataConversionException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.jdom2.JDOMException
              extended by org.jdom2.DataConversionException
All Implemented Interfaces:
java.io.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.

Author:
Brett McLaughlin, Jason Hunter
See Also:
Serialized Form

Constructor Summary
DataConversionException(java.lang.String name, java.lang.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
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DataConversionException

public DataConversionException(java.lang.String name,
                               java.lang.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

JDOM
2.0.5

Copyright 2013 Jason Hunter, Brett McLaughlin. All Rights Reserved.