com.aspose.html.dom

Class DOMException

    • Field Detail

      • INDEX_SIZE_ERR

        public static final int INDEX_SIZE_ERR

        If index or size is negative, or greater than the allowed value.

        See Also:
        Constant Field Values
      • DOMSTRING_SIZE_ERR

        public static final int DOMSTRING_SIZE_ERR

        If the specified range of text does not fit into a DOMString.

        See Also:
        Constant Field Values
      • HIERARCHY_REQUEST_ERR

        public static final int HIERARCHY_REQUEST_ERR

        If any Node is inserted somewhere it doesn't belong.

        See Also:
        Constant Field Values
      • WRONG_DOCUMENT_ERR

        public static final int WRONG_DOCUMENT_ERR

        If a Node is used in a different document than the one that created it (that doesn't support it).

        See Also:
        Constant Field Values
      • INVALID_CHARACTER_ERR

        public static final int INVALID_CHARACTER_ERR

        If an invalid or illegal character is specified, such as in an XML name.

        See Also:
        Constant Field Values
      • NO_DATA_ALLOWED_ERR

        public static final int NO_DATA_ALLOWED_ERR

        If data is specified for a Node which does not support data.

        See Also:
        Constant Field Values
      • NO_MODIFICATION_ALLOWED_ERR

        public static final int NO_MODIFICATION_ALLOWED_ERR

        If an attempt is made to modify an object where modifications are not allowed.

        See Also:
        Constant Field Values
      • NOT_FOUND_ERR

        public static final int NOT_FOUND_ERR

        If an attempt is made to reference a Node in a context where it does not exist.

        See Also:
        Constant Field Values
      • NOT_SUPPORTED_ERR

        public static final int NOT_SUPPORTED_ERR

        If the implementation does not support the requested type of object or operation.

        See Also:
        Constant Field Values
      • INUSE_ATTRIBUTE_ERR

        public static final int INUSE_ATTRIBUTE_ERR

        If an attempt is made to add an attribute that is already in use elsewhere.

        See Also:
        Constant Field Values
      • INVALID_STATE_ERR

        public static final int INVALID_STATE_ERR

        If an attempt is made to use an object that is not, or is no longer, usable.

        See Also:
        Constant Field Values
      • SYNTAX_ERR

        public static final int SYNTAX_ERR

        If an invalid or illegal string is specified.

        See Also:
        Constant Field Values
      • INVALID_MODIFICATION_ERR

        public static final int INVALID_MODIFICATION_ERR

        If an attempt is made to modify the type of the underlying object.

        See Also:
        Constant Field Values
      • NAMESPACE_ERR

        public static final int NAMESPACE_ERR

        If an attempt is made to create or change an object in a way which is incorrect with regard to namespaces.

        See Also:
        Constant Field Values
      • INVALID_ACCESS_ERR

        public static final int INVALID_ACCESS_ERR

        If a parameter or an operation is not supported by the underlying object.

        See Also:
        Constant Field Values
      • VALIDATION_ERR

        public static final int VALIDATION_ERR

        If 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. This code is used in [DOM Level 3 Validation]. Refer to this specification for further information.

        See Also:
        Constant Field Values
      • TYPE_MISMATCH_ERR

        public static final int TYPE_MISMATCH_ERR

        If the type of an object is incompatible with the expected type of the parameter associated to the object.

        See Also:
        Constant Field Values
      • SECURITY_ERR

        public static final int SECURITY_ERR

        The operation is insecure.

        See Also:
        Constant Field Values
      • NETWORK_ERR

        public static final int NETWORK_ERR

        A network error occurred.

        See Also:
        Constant Field Values
      • ABORT_ERR

        public static final int ABORT_ERR

        The operation was aborted.

        See Also:
        Constant Field Values
      • URL_MISMATCH_ERR

        public static final int URL_MISMATCH_ERR

        The given URL does not match another URL.

        See Also:
        Constant Field Values
      • QUOTA_EXCEEDED_ERR

        public static final int QUOTA_EXCEEDED_ERR

        The quota has been exceeded.

        See Also:
        Constant Field Values
      • TIMEOUT_ERR

        public static final int TIMEOUT_ERR

        The operation timed out.

        See Also:
        Constant Field Values
      • INVALID_NODE_TYPE_ERR

        public static final int INVALID_NODE_TYPE_ERR

        The supplied node is incorrect or has an incorrect ancestor for this operation.

        See Also:
        Constant Field Values
      • DATA_CLONE_ERR

        public static final int DATA_CLONE_ERR

        The object can not be cloned.

        See Also:
        Constant Field Values
      • INVALID_EXPRESSION_ERR

        public static final int INVALID_EXPRESSION_ERR

        The expression has a syntax error or otherwise is not a legal expression according to the rules of the specific XPathEvaluator or contains specialized extension functions or variables not supported by this implementation.

        See Also:
        Constant Field Values
      • TYPE_ERR

        public static final int TYPE_ERR

        The expression cannot be converted to return the specified type.

        See Also:
        Constant Field Values
    • Constructor Detail

      • DOMException

        public DOMException(String message)

        Initializes a new instance of the DOMException class.

        Parameters:
        message - The message.
    • Method Detail

      • getCode

        public long getCode()

        Gets the exception code.