|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Exception java.lang.RuntimeException org.w3c.dom.DOMException
public class DOMException
Field Summary | |
---|---|
short |
code
The member variable to store exception's code, like INVALID_ACCESS_ERR. |
static short |
HIERARCHY_REQUEST_ERR
If any Node is inserted somewhere it doesn't belong. |
static short |
INDEX_SIZE_ERR
If index or size is negative, or greater than the allowed value. |
static short |
INVALID_ACCESS_ERR
If a parameter or an operation is not supported by the underlying object. |
static short |
INVALID_MODIFICATION_ERR
If an attempt is made to modify the type of the underlying object. |
static short |
INVALID_STATE_ERR
If an attempt is made to use an object that is not, or is no longer, usable. |
static short |
NO_MODIFICATION_ALLOWED_ERR
If an attempt is made to modify an object where modifications are not allowed. |
static short |
NOT_FOUND_ERR
If an attempt is made to reference a Node in a context where it does not exist. |
static short |
NOT_SUPPORTED_ERR
If the implementation does not support the requested type of object or operation. |
static short |
TYPE_MISMATCH_ERR
If the type of an object is incompatible with the expected type of the parameter associated to the object. |
static short |
WRONG_DOCUMENT_ERR
If a node is used in a different document than the one that created it (that doesn't support it). |
Constructor Summary | |
---|---|
DOMException(short code,
java.lang.String message)
Constructs a DOMException with a detailed message. |
Method Summary |
---|
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, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final short WRONG_DOCUMENT_ERR
public static final short INDEX_SIZE_ERR
public static final short HIERARCHY_REQUEST_ERR
public static final short NO_MODIFICATION_ALLOWED_ERR
public static final short NOT_FOUND_ERR
Node
in a context where it does not exist. See insertBefore
for example.
public static final short NOT_SUPPORTED_ERR
public static final short INVALID_STATE_ERR
public static final short INVALID_MODIFICATION_ERR
public static final short INVALID_ACCESS_ERR
public static final short TYPE_MISMATCH_ERR
public short code
Constructor Detail |
---|
public DOMException(short code, java.lang.String message)
code
- the exception's error code.message
- the exception's descriptive message.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |