gnu.xml.dom
Class DomEx
DOMException implementation. The version that
is provided by the W3C is abstract, so it can't be instantiated.
This also provides a bit more information about the error
that is being reported, in terms of the relevant DOM structures
and data.
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 , NOT_FOUND_ERR , NOT_SUPPORTED_ERR , NO_DATA_ALLOWED_ERR , NO_MODIFICATION_ALLOWED_ERR , SYNTAX_ERR , TYPE_MISMATCH_ERR , VALIDATION_ERR , WRONG_DOCUMENT_ERR , code |
DomEx(short code) - Constructs an exception, with the diagnostic message
corresponding to the specified code.
|
DomEx(short code, String data, Node node, int value) - Constructs an exception, with the diagnostic message
corresponding to the specified code and additional
information as provided.
|
String | getData() - Returns data to which the diagnotic applies, or null.
|
String | getMessage() - Returns a diagnostic message that may be slightly more useful
than the generic one, where possible.
|
Node | getNode() - Returns the node to which the diagnotic applies, or null.
|
int | getValue() - Returns data to which the diagnotic applies, or null.
|
DomEx
public DomEx(short code)
Constructs an exception, with the diagnostic message
corresponding to the specified code.
DomEx
public DomEx(short code,
String data,
Node node,
int value)
Constructs an exception, with the diagnostic message
corresponding to the specified code and additional
information as provided.
getData
public final String getData()
Returns data to which the diagnotic applies, or null.
getMessage
public String getMessage()
Returns a diagnostic message that may be slightly more useful
than the generic one, where possible.
getNode
public final Node getNode()
Returns the node to which the diagnotic applies, or null.
getValue
public final int getValue()
Returns data to which the diagnotic applies, or null.