org.relaxng.datatype
Class DatatypeException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--org.relaxng.datatype.DatatypeException
All Implemented Interfaces:
java.io.Serializable

public class DatatypeException
extends java.lang.Exception

signals Datatype related exceptions.

Author:
Kohsuke KAWAGUCHI
See Also:
Serialized Form

Field Summary
static int UNKNOWN
           
 
Constructor Summary
DatatypeException()
          a constructor for those datatype libraries which don't support any diagnostic information at all.
DatatypeException(Datatype type, int index, java.lang.String msg)
           
DatatypeException(java.lang.String msg)
           
 
Method Summary
 Datatype getDatatype()
          gets the Datatype object that generates this error.
 int getIndex()
          gets the index of the content where the error occured.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

UNKNOWN

public static int UNKNOWN
Constructor Detail

DatatypeException

public DatatypeException(Datatype type,
                         int index,
                         java.lang.String msg)

DatatypeException

public DatatypeException(java.lang.String msg)

DatatypeException

public DatatypeException()
a constructor for those datatype libraries which don't support any diagnostic information at all.
Method Detail

getDatatype

public Datatype getDatatype()
gets the Datatype object that generates this error.

getIndex

public int getIndex()
gets the index of the content where the error occured. UNKNOWN can be returned to indicate that no index information is available.