public class DOMException extends SimpleScriptable
Modifier and Type | Field and Description |
---|---|
static short |
ABORT_ERR
Abort error.
|
static short |
DATA_CLONE_ERR
Data clone error.
|
static short |
DOMSTRING_SIZE_ERR
If the specified range of text does not fit into a DOMString.
|
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 |
INUSE_ATTRIBUTE_ERR
If an attempt is made to add an attribute that is already in use elsewhere.
|
static short |
INVALID_ACCESS_ERR
If a parameter or an operation is not supported by the underlying object.
|
static short |
INVALID_CHARACTER_ERR
If an invalid or illegal character is specified, such as in a name.
|
static short |
INVALID_MODIFICATION_ERR
If an attempt is made to modify the type of the underlying object.
|
static short |
INVALID_NODE_TYPE_ERR
Invalid node type error.
|
static short |
INVALID_STATE_ERR
If an attempt is made to use an object that is not, or is no longer, usable.
|
static short |
NAMESPACE_ERR
If an attempt is made to create or change an object in a way which is incorrect with regard to namespaces.
|
static short |
NETWORK_ERR
Network error.
|
static short |
NO_DATA_ALLOWED_ERR
If data is specified for a node which does not support data.
|
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 |
PARSE_ERR
Parse error.
|
static short |
QUOTA_EXCEEDED_ERR
Quota exceeded error.
|
static short |
SECURITY_ERR
Security error.
|
static short |
SERIALIZE_ERR
Serialize error.
|
static short |
SYNTAX_ERR
If an invalid or illegal string is specified.
|
static short |
TIMEOUT_ERR
Timeout error.
|
static short |
TYPE_MISMATCH_ERR
If the type of an object is incompatible with the expected type of the parameter.
|
static short |
URL_MISMATCH_ERR
URL mismatch error.
|
static short |
VALIDATION_ERR
If a call to a method would make the
Node invalid with respect to "partial validity". |
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 and Description |
---|
DOMException()
Default constructor used to build the prototype.
|
DOMException(String message,
short errorCode)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Object |
getCode()
Gets the exception code.
|
Object |
getFilename()
Gets the name of the in which the exception occurred.
|
Object |
getLineNumber()
Gets the line at which the exception occurred.
|
Object |
getMessage()
Gets the exception message.
|
void |
setLocation(String fileName,
int lineNumber)
Sets the location in JavaScript source where this exception occurred.
|
clone, equivalentValues, get, getBrowserVersion, getDefaultValue, getDomNodeOrDie, getDomNodeOrNull, getPrototype, getScriptableFor, getStartingScope, getWindow, getWindow, getWithPreemption, has, hasInstance, initParentScope, makeScriptableFor, setCaseSensitive, setDomNode, setDomNode, setHtmlElement
defineFunctionProperties, defineProperty, getClassName, put, setClassName, setParentScope
applyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, checkPropertyChange, checkPropertyDefinition, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineOwnProperties, defineOwnProperty, defineOwnProperty, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, delete, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, ensureSymbolScriptable, get, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getExternalArrayData, getExternalArrayLength, getFunctionPrototype, getGeneratorFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getProperty, getPropertyIds, getPrototype, getSlot, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, has, hasProperty, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isReadOnlySettable, isSealed, isTrue, preventExtensions, put, put, putConst, putConstProperty, putProperty, putProperty, putProperty, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setAttributes, setExternalArrayData, setGetterOrSetter, setPrototype, size
public static final short DOMSTRING_SIZE_ERR
public static final short HIERARCHY_REQUEST_ERR
public static final short INDEX_SIZE_ERR
public static final short INUSE_ATTRIBUTE_ERR
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 NAMESPACE_ERR
public static final short NO_DATA_ALLOWED_ERR
public static final short NO_MODIFICATION_ALLOWED_ERR
public static final short NOT_FOUND_ERR
public static final short NOT_SUPPORTED_ERR
public static final short SYNTAX_ERR
public static final short WRONG_DOCUMENT_ERR
public static final short VALIDATION_ERR
Node
invalid with respect to "partial validity".public static final short TYPE_MISMATCH_ERR
public static final short SECURITY_ERR
public static final short NETWORK_ERR
public static final short ABORT_ERR
public static final short URL_MISMATCH_ERR
public static final short QUOTA_EXCEEDED_ERR
public static final short TIMEOUT_ERR
public static final short INVALID_NODE_TYPE_ERR
public static final short DATA_CLONE_ERR
public static final short PARSE_ERR
public static final short SERIALIZE_ERR
public DOMException()
public DOMException(String message, short errorCode)
message
- the exception messageerrorCode
- the error codepublic Object getCode()
public Object getMessage()
public Object getLineNumber()
public Object getFilename()
public void setLocation(String fileName, int lineNumber)
fileName
- the name of the source filelineNumber
- the line numberCopyright © 2002–2020 Gargoyle Software Inc.. All rights reserved.