org.relaxng.datatype

Class DatatypeException


public class DatatypeException
extends Exception

Signals Datatype related exceptions.
Authors:
James Clark
Kohsuke KAWAGUCHI

Field Summary

static int
UNKNOWN

Constructor Summary

DatatypeException()
A constructor for those datatype libraries which don't support any diagnostic information at all.
DatatypeException(String msg)
DatatypeException(int index, String msg)

Method Summary

int
getIndex()
Gets the index of the content where the error occured.

Field Details

UNKNOWN

public static final int UNKNOWN
Field Value:
-1

Constructor Details

DatatypeException

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

DatatypeException

public DatatypeException(String msg)

DatatypeException

public DatatypeException(int index,
                         String msg)

Method Details

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.