public class DOMException extends RuntimeException
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.Modifier and Type | Field and Description |
---|---|
protected short |
code |
static short |
INVALID_ACCESS_ERR |
static short |
INVALID_CHARACTER_ERR |
static short |
INVALID_MODIFICATION_ERR |
static short |
INVALID_STATE_ERR |
static short |
SYNTAX_ERR |
Constructor and Description |
---|
DOMException(short code,
String message) |
Modifier and Type | Method and Description |
---|---|
short |
getCode()
This method gets the code of this
DOMException . |
addSuppressed, fillInStackTrace, getBackingJsObject, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, of, printStackTrace, printStackTrace, setStackTrace, toString
public static final short INVALID_ACCESS_ERR
public static final short INVALID_CHARACTER_ERR
public static final short INVALID_MODIFICATION_ERR
public static final short INVALID_STATE_ERR
public static final short SYNTAX_ERR
protected short code
public DOMException(short code, String message)
Copyright © 2018. All rights reserved.