DOCUMENTS 5 - PortalScripting API
Public Attributes | List of all members
DOMException Class Reference

Many of the DOM API functions throw a DOMException, when an error has occurred. More...

Public Attributes

Integer code
 An error code. More...
 
String message
 An error message. More...
 
Error Code Constants

All these constants are also available as properties of the constructor.

Since
DOCUMENTS 4.0c
Integer INDEX_SIZE_ERR
 The index or size is negative, or greater than the allowed value.
 
Integer DOMSTRING_SIZE_ERR
 The specified range of text does not fit into a DOMString.
 
Integer HIERARCHY_REQUEST_ERR
 Any node is inserted somewhere it doesn't belong.
 
Integer WRONG_DOCUMENT_ERR
 A node is used in a different document than the one that created it.
 
Integer INVALID_CHARACTER_ERR
 An invalid or illegal character is specified, such as in a name.
 
Integer NO_DATA_ALLOWED_ERR
 Data is specified for a node which does not support data.
 
Integer NO_MODIFICATION_ALLOWED_ERR
 An attempt is made to modify an object where modifications are not allowed.
 
Integer NOT_FOUND_ERR
 An attempt is made to reference a node in a context where it does not exist.
 
Integer NOT_SUPPORTED_ERR
 The implementation does not support the requested type of object or operation.
 
Integer INUSE_ATTRIBUTE_ERR
 An attempt is made to add an attribute that is already in use elsewhere.
 
Integer INVALID_STATE_ERR
 An attempt is made to use an object that is not, or is no longer, usable.
 
Integer SYNTAX_ERR
 An invalid or illegal string is specified.
 
Integer INVALID_MODIFICATION_ERR
 An attempt is made to modify the type of the underlying object.
 
Integer NAMESPACE_ERR
 An attempt is made to create or change an object in a way which is incorrect with regard to namespaces.
 
Integer INVALID_ACCESS_ERR
 A parameter or an operation is not supported by the underlying object.
 
Integer VALIDATION_ERR
 A call to a method such as insertBefore or removeChild would make the Node invalid with respect to "partial validity", this exception would be raised and the operation would not be done.
 

Detailed Description

Many of the DOM API functions throw a DOMException, when an error has occurred.

Remarks about W3C conformity
The class implements the DOMException exception type with the error codes specified in DOM level 2.

Since
DOCUMENTS 4.0c

Member Data Documentation

◆ code

Integer DOMException::code

An error code.

See the error constants in this class.

Since
DOCUMENTS 4.0c

◆ message

String DOMException::message

An error message.

Since
DOCUMENTS 4.0c

This documentation refers DOCUMENTS 5.0e (2105).
Created at 11-09-2019. - © 1998-2019 otris software AG, Königswall 21, D-44137 Dortmund. support@otris.de