An instance of this class is thrown whenever an exception is raised by the DOM API. Unlike many Java APIs, the DOM API does not define specialized subclasses to define different categories of exceptions. Instead, a more specific exception type is specified by the public field code . The value of this field will be one of the constants defined by this class, which have the following meanings:
Figure 21-8. org.w3c.dom.DOMExceptionpublic class DOMException extends RuntimeException { // Public Constructors public DOMException (short code , String message ); // Public Constants public static final short DOMSTRING_SIZE_ERR ; =2 public static final short HIERARCHY_REQUEST_ERR ; =3 public static final short INDEX_SIZE_ERR ; =1 public static final short INUSE_ATTRIBUTE_ERR ; =10 public static final short INVALID_ACCESS_ERR ; =15 public static final short INVALID_CHARACTER_ERR ; =5 public static final short INVALID_MODIFICATION_ERR ; =13 public static final short INVALID_STATE_ERR ; =11 public static final short NAMESPACE_ERR ; =14 public static final short NO_DATA_ALLOWED_ERR ; =6 public static final short NO_MODIFICATION_ALLOWED_ERR ; =7 public static final short NOT_FOUND_ERR ; =8 public static final short NOT_SUPPORTED_ERR ; =9 public static final short SYNTAX_ERR ; =12 5.0 public static final short TYPE_MISMATCH_ERR ; =17 5.0 public static final short VALIDATION_ERR ; =16 public static final short WRONG_DOCUMENT_ERR ; =4 // Public Instance Fields public short code ; } Thrown ByToo many methods to list. |