org.w3c.dom
Class DOMException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.w3c.dom.DOMException
All Implemented Interfaces:
java.io.Serializable

public class DOMException
extends java.lang.RuntimeException

See Also:
Serialized Form

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

WRONG_DOCUMENT_ERR

public static final short WRONG_DOCUMENT_ERR
If a node is used in a different document than the one that created it (that doesn't support it).

See Also:
Constant Field Values

INDEX_SIZE_ERR

public static final short INDEX_SIZE_ERR
If index or size is negative, or greater than the allowed value.

See Also:
Constant Field Values

HIERARCHY_REQUEST_ERR

public static final short HIERARCHY_REQUEST_ERR
If any Node is inserted somewhere it doesn't belong.

See Also:
Constant Field Values

NO_MODIFICATION_ALLOWED_ERR

public static final short NO_MODIFICATION_ALLOWED_ERR
If an attempt is made to modify an object where modifications are not allowed.

See Also:
Constant Field Values

NOT_FOUND_ERR

public static final short NOT_FOUND_ERR
If an attempt is made to reference a Node in a context where it does not exist. See insertBefore for example.

See Also:
Constant Field Values

NOT_SUPPORTED_ERR

public static final short NOT_SUPPORTED_ERR
If the implementation does not support the requested type of object or operation.

See Also:
Constant Field Values

INVALID_STATE_ERR

public static final short INVALID_STATE_ERR
If an attempt is made to use an object that is not, or is no longer, usable.

See Also:
Constant Field Values

INVALID_MODIFICATION_ERR

public static final short INVALID_MODIFICATION_ERR
If an attempt is made to modify the type of the underlying object.

See Also:
Constant Field Values

INVALID_ACCESS_ERR

public static final short INVALID_ACCESS_ERR
If a parameter or an operation is not supported by the underlying object.

See Also:
Constant Field Values

TYPE_MISMATCH_ERR

public static final short TYPE_MISMATCH_ERR
If the type of an object is incompatible with the expected type of the parameter associated to the object.

See Also:
Constant Field Values

code

public short code
The member variable to store exception's code, like INVALID_ACCESS_ERR.

Constructor Detail

DOMException

public DOMException(short code,
                    java.lang.String message)
Constructs a DOMException with a detailed message.

Parameters:
code - the exception's error code.
message - the exception's descriptive message.


Copyright © 2003-2006 Nokia Corporation. See the Copyright Notice for details.