Package org.relaxng.datatype
Class DatatypeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.relaxng.datatype.DatatypeException
- All Implemented Interfaces:
Serializable
Signals Datatype related exceptions.
- Author:
- James Clark, Kohsuke KAWAGUCHI
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorDescriptionA constructor for those datatype libraries which don't support any diagnostic information at all.DatatypeException
(int index, String msg) DatatypeException
(String msg) -
Method Summary
Modifier and TypeMethodDescriptionint
getIndex()
Gets the index of the content where the error occurred.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
UNKNOWN
public static final int UNKNOWN- See Also:
-
-
Constructor Details
-
DatatypeException
-
DatatypeException
-
DatatypeException
public DatatypeException()A constructor for those datatype libraries which don't support any diagnostic information at all.
-
-
Method Details
-
getIndex
public int getIndex()Gets the index of the content where the error occurred. UNKNOWN can be returned to indicate that no index information is available.
-