public class

DOMException

extends RuntimeException
java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ java.lang.RuntimeException
         ↳ com.google.gwt.xml.client.DOMException
Known Direct Subclasses

Class Overview

Thrown when DOM exceptions occur. Two subclasses exist: DOMNodeException and DOMParseException which give more detailed information for DOM manipulation errors and parse errors, respectively. All DOMExceptions thrown in this package will be instances of one of those two classes.

Summary

Constants
short INVALID_ACCESS_ERR
short INVALID_CHARACTER_ERR
short INVALID_MODIFICATION_ERR
short INVALID_STATE_ERR
short SYNTAX_ERR
Fields
protected short code
Public Constructors
DOMException(short code, String message)
Public Methods
short getCode()
This method gets the code of this DOMException.
[Expand]
Inherited Methods
From class java.lang.Throwable
From class java.lang.Object

Constants

public static final short INVALID_ACCESS_ERR

Constant Value: 15 (0x0000000f)

public static final short INVALID_CHARACTER_ERR

Constant Value: 5 (0x00000005)

public static final short INVALID_MODIFICATION_ERR

Constant Value: 13 (0x0000000d)

public static final short INVALID_STATE_ERR

Constant Value: 11 (0x0000000b)

public static final short SYNTAX_ERR

Constant Value: 12 (0x0000000c)

Fields

protected short code

Public Constructors

public DOMException (short code, String message)

Public Methods

public short getCode ()

This method gets the code of this DOMException.

Returns
  • the code of this DOMException