public class DOMException extends HtmlUnitScriptable
org.htmlunit.corejs.javascript.ScriptableObject.KeyComparator
Modifier and Type | Field and Description |
---|---|
static int |
ABORT_ERR
Abort error.
|
static int |
DATA_CLONE_ERR
Data clone error.
|
static int |
DOMSTRING_SIZE_ERR
If the specified range of text does not fit into a DOMString.
|
static int |
HIERARCHY_REQUEST_ERR
If any node is inserted somewhere it doesn't belong.
|
static int |
INDEX_SIZE_ERR
If index or size is negative, or greater than the allowed value.
|
static int |
INUSE_ATTRIBUTE_ERR
If an attempt is made to add an attribute that is already in use elsewhere.
|
static int |
INVALID_ACCESS_ERR
If a parameter or an operation is not supported by the underlying object.
|
static int |
INVALID_CHARACTER_ERR
If an invalid or illegal character is specified, such as in a name.
|
static int |
INVALID_MODIFICATION_ERR
If an attempt is made to modify the type of the underlying object.
|
static int |
INVALID_NODE_TYPE_ERR
Invalid node type error.
|
static int |
INVALID_STATE_ERR
If an attempt is made to use an object that is not, or is no longer, usable.
|
static int |
NAMESPACE_ERR
If an attempt is made to create or change an object in a way which is incorrect with regard to namespaces.
|
static int |
NETWORK_ERR
Network error.
|
static int |
NO_DATA_ALLOWED_ERR
If data is specified for a node which does not support data.
|
static int |
NO_MODIFICATION_ALLOWED_ERR
If an attempt is made to modify an object where modifications are not allowed.
|
static int |
NOT_FOUND_ERR
If an attempt is made to reference a node in a context where it does not exist.
|
static int |
NOT_SUPPORTED_ERR
If the implementation does not support the requested type of object or operation.
|
static int |
QUOTA_EXCEEDED_ERR
Quota exceeded error.
|
static int |
SECURITY_ERR
Security error.
|
static int |
SYNTAX_ERR
If an invalid or illegal string is specified.
|
static int |
TIMEOUT_ERR
Timeout error.
|
static int |
TYPE_MISMATCH_ERR
If the type of an object is incompatible with the expected type of the parameter.
|
static int |
URL_MISMATCH_ERR
URL mismatch error.
|
static int |
VALIDATION_ERR
If a call to a method would make the
Node invalid with respect to "partial validity". |
static int |
WRONG_DOCUMENT_ERR
If a node is used in a different document than the one that created it (that doesn't support it).
|
CONST, DONTENUM, EMPTY, PERMANENT, READONLY, UNINITIALIZED_CONST
NOT_FOUND
Constructor and Description |
---|
DOMException()
Default constructor used to build the prototype.
|
DOMException(String message,
int 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 |
jsConstructor()
JavaScript constructor.
|
void |
setLocation(String fileName,
int lineNumber)
Sets the location in JavaScript source where this exception occurred.
|
clone, equivalentValues, get, getBrowserVersion, getClassName, getDefaultValue, getDomNodeOrDie, getDomNodeOrNull, getPrototype, getScriptableFor, getWindow, getWindow, getWindowFromTopCallScope, getWithPreemption, has, hasInstance, initParentScope, makeScriptableFor, put, setClassName, setDomNode, setDomNode, setParentScope, setupPromise, setupRejectedPromise
applyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, checkPropertyChange, checkPropertyDefinition, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineOwnProperties, defineOwnProperty, defineOwnProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, delete, deleteProperty, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, ensureSymbolScriptable, get, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getExternalArrayData, getExternalArrayLength, getFunctionPrototype, getGeneratorFunctionPrototype, getGetterOrSetter, getGetterOrSetter, getIds, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getProperty, getPropertyIds, getPrototype, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, has, hasProperty, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isSealed, isTrue, preventExtensions, put, put, putConst, putConstProperty, putProperty, putProperty, putProperty, querySlot, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setAttributes, setCommonDescriptorProperties, setExternalArrayData, setGetterOrSetter, setPrototype, size
public static final int DOMSTRING_SIZE_ERR
public static final int HIERARCHY_REQUEST_ERR
public static final int INDEX_SIZE_ERR
public static final int INUSE_ATTRIBUTE_ERR
public static final int INVALID_ACCESS_ERR
public static final int INVALID_CHARACTER_ERR
public static final int INVALID_MODIFICATION_ERR
public static final int INVALID_STATE_ERR
public static final int NAMESPACE_ERR
public static final int NO_DATA_ALLOWED_ERR
public static final int NO_MODIFICATION_ALLOWED_ERR
public static final int NOT_FOUND_ERR
public static final int NOT_SUPPORTED_ERR
public static final int SYNTAX_ERR
public static final int WRONG_DOCUMENT_ERR
public static final int VALIDATION_ERR
Node
invalid with respect to "partial validity".public static final int TYPE_MISMATCH_ERR
public static final int SECURITY_ERR
public static final int NETWORK_ERR
public static final int ABORT_ERR
public static final int URL_MISMATCH_ERR
public static final int QUOTA_EXCEEDED_ERR
public static final int TIMEOUT_ERR
public static final int INVALID_NODE_TYPE_ERR
public static final int DATA_CLONE_ERR
public DOMException()
public DOMException(String message, int errorCode)
message
- the exception messageerrorCode
- the error codepublic void jsConstructor()
public 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–2024 Gargoyle Software Inc.. All rights reserved.