org.relaxng.datatype

Class DatatypeException

Implemented Interfaces:
Serializable

public class DatatypeException
extends Exception

Signals Datatype related exceptions.
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(int index, String msg)
DatatypeException(String msg)
Create an exception with a message.

Method Summary

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

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

clone, equals, extends Object> getClass, finalize, hashCode, notify, notifyAll, toString, wait, wait, wait

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(int index,
                         String msg)

DatatypeException

public DatatypeException(String msg)
Create an exception with a message. The cause remains uninitialized.
Parameters:

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.