|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.htmlunit.corejs.javascript.ScriptableObject
com.gargoylesoftware.htmlunit.javascript.SimpleScriptable
com.gargoylesoftware.htmlunit.javascript.host.DOMException
public class DOMException
Exception for DOM manipulations.
| Field Summary | |
|---|---|
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_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 |
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 |
SYNTAX_ERR
If an invalid or illegal string is specified. |
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). |
| Fields inherited from class net.sourceforge.htmlunit.corejs.javascript.ScriptableObject |
|---|
CONST, DONTENUM, EMPTY, PERMANENT, READONLY, UNINITIALIZED_CONST |
| Fields inherited from interface net.sourceforge.htmlunit.corejs.javascript.Scriptable |
|---|
NOT_FOUND |
| Constructor Summary | |
|---|---|
DOMException()
Default constructor used to build the prototype. |
|
DOMException(String message,
short errorCode)
Constructor. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class com.gargoylesoftware.htmlunit.javascript.SimpleScriptable |
|---|
clone, defineFunctionProperties, defineProperty, equivalentValues, get, getBrowserVersion, getClassName, getDefaultValue, getDomNodeOrDie, getDomNodeOrNull, getPrototype, getScriptableFor, getStartingScope, getTransformerScriptableFor, getWindow, getWindow, getWithPreemption, hasInstance, initParentScope, isReadOnlySettable, makeScriptableFor, setCaseSensitive, setDomNode, setDomNode, setHtmlElement |
| Methods inherited from class net.sourceforge.htmlunit.corejs.javascript.ScriptableObject |
|---|
applyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, checkPropertyChange, checkPropertyDefinition, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineOwnProperties, defineOwnProperty, defineOwnProperty, defineProperty, defineProperty, defineProperty, delete, delete, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getSlot, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, has, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isSealed, isTrue, preventExtensions, put, put, putConst, putConstProperty, putProperty, putProperty, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setGetterOrSetter, setParentScope, setPrototype, size |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
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
| Constructor Detail |
|---|
public DOMException()
public DOMException(String message,
short errorCode)
message - the exception messageerrorCode - the error code| Method Detail |
|---|
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 number
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||