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(DataType type, java.lang.String content, int index, java.lang.String msg)
           
DataTypeException(java.lang.String msg)
           
 
Method Summary
 java.lang.String getContent()
          gets the lexcial representation of data that caused an error
 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,
                         java.lang.String content,
                         int index,
                         java.lang.String msg)

DataTypeException

public DataTypeException(java.lang.String msg)
Method Detail

getContent

public java.lang.String getContent()
gets the lexcial representation of data that caused an error

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.