java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.w3c.dom.DOMException
io.sf.carte.doc.DOMCharacterException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
DOMNullCharacterException
Invalid DOM character exception.
Provides a method to recover the index at which the problem occurred.
- See Also:
-
Field Summary
Fields inherited from class org.w3c.dom.DOMException
code, DOMSTRING_SIZE_ERR, HIERARCHY_REQUEST_ERR, INDEX_SIZE_ERR, INUSE_ATTRIBUTE_ERR, INVALID_ACCESS_ERR, INVALID_CHARACTER_ERR, INVALID_MODIFICATION_ERR, INVALID_STATE_ERR, NAMESPACE_ERR, NO_DATA_ALLOWED_ERR, NO_MODIFICATION_ALLOWED_ERR, NOT_FOUND_ERR, NOT_SUPPORTED_ERR, SYNTAX_ERR, TYPE_MISMATCH_ERR, VALIDATION_ERR, WRONG_DOCUMENT_ERR
-
Constructor Summary
ConstructorDescriptionDOMCharacterException
(int index) DOMCharacterException
(String message, int index) -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
DOMCharacterException
public DOMCharacterException(int index) -
DOMCharacterException
-
-
Method Details
-
getIndex
public int getIndex()Get the index at which the problem was found.- Returns:
- the index, starting at 0, or -1 if no index could be determined.
-