org.relaxng.datatype

Class DatatypeException

public class DatatypeException extends Exception

Signals Datatype related exceptions.
Field Summary
static intUNKNOWN
Constructor Summary
DatatypeException(int index, String msg)
DatatypeException(String msg)
DatatypeException()
A constructor for those datatype libraries which don't support any diagnostic information at all.
Method Summary
intgetIndex()
Gets the index of the content where the error occured.

Field Detail

UNKNOWN

public static final int UNKNOWN

Constructor Detail

DatatypeException

public DatatypeException(int index, String msg)

DatatypeException

public DatatypeException(String msg)

DatatypeException

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

Method Detail

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.