com.hp.hpl.jena.datatypes
Class DatatypeFormatException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.hp.hpl.jena.shared.JenaException
                  extended by com.hp.hpl.jena.datatypes.DatatypeFormatException
All Implemented Interfaces:
java.io.Serializable

public class DatatypeFormatException
extends JenaException

Exception thrown when a lexical form does not match the stated datatype.

Version:
$Revision: 1.1 $ on $Date: 2009/06/29 08:55:50 $
Author:
Dave Reynolds
See Also:
Serialized Form

Constructor Summary
DatatypeFormatException()
          Creates a new instance of DatatypeFormatException without detail message.
DatatypeFormatException(java.lang.String msg)
          Constructs an instance of DatatypeFormatException with the specified detail message.
DatatypeFormatException(java.lang.String lexicalForm, RDFDatatype dtype, java.lang.String msg)
          Preferred constructor.
 
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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DatatypeFormatException

public DatatypeFormatException(java.lang.String lexicalForm,
                               RDFDatatype dtype,
                               java.lang.String msg)
Preferred constructor.

Parameters:
lexicalForm - the illegal string discovered
dtype - the datatype that found the problem
msg - additional context for the error

DatatypeFormatException

public DatatypeFormatException()
Creates a new instance of DatatypeFormatException without detail message.


DatatypeFormatException

public DatatypeFormatException(java.lang.String msg)
Constructs an instance of DatatypeFormatException with the specified detail message.

Parameters:
msg - the detail message.


Copyright © 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Hewlett-Packard Development Company, LP