Package org.htmlunit.cssparser.dom
Class DOMException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.htmlunit.cssparser.dom.DOMException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
DTMDOMException,DTMNamedNodeMap.DTMException
The DOMException class
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intCHARSET_NOT_FIRST = 11.static final intCHARSET_NOT_UNIQUE = 12.static final shortstatic final intEXPECTING_CHARSET_RULE = 4.static final intEXPECTING_FONT_FACE_RULE = 7.static final intEXPECTING_IMPORT_RULE = 5.static final intEXPECTING_MEDIA_RULE = 6.static final intEXPECTING_PAGE_RULE = 8.static final intEXPECTING_STYLE_RULE = 3.static final intFLOAT_ERROR = 9.static final shortstatic final intIMPORT_NOT_FIRST = 13.static final intINDEX_OUT_OF_BOUNDS = 1.static final shortstatic final intINSERT_BEFORE_IMPORT = 16.static final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final intNOT_FOUND = 14.static final shortstatic final intNOT_IMPLEMENTED = 15.static final shortstatic final intREAD_ONLY_STYLE_SHEET = 2.static final intSTRING_ERROR = 10.static final shortstatic final intSYNTAX_ERROR = 0.static final shortstatic final shortstatic final short -
Constructor Summary
ConstructorsConstructorDescriptionDOMException(int code, int messageKey, String info) Ctor.DOMException(short code, int codeMessage) DOMException(short code, short codeMessage) DOMException(short code, String message) -
Method Summary
Modifier and TypeMethodDescriptionshortgetCode()Getter for the fieldcode.Getter for the fieldmessage.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
INDEX_SIZE_ERR
public static final short INDEX_SIZE_ERR- See Also:
-
DOMSTRING_SIZE_ERR
public static final short DOMSTRING_SIZE_ERR- See Also:
-
HIERARCHY_REQUEST_ERR
public static final short HIERARCHY_REQUEST_ERR- See Also:
-
WRONG_DOCUMENT_ERR
public static final short WRONG_DOCUMENT_ERR- See Also:
-
INVALID_CHARACTER_ERR
public static final short INVALID_CHARACTER_ERR- See Also:
-
NO_DATA_ALLOWED_ERR
public static final short NO_DATA_ALLOWED_ERR- See Also:
-
NO_MODIFICATION_ALLOWED_ERR
public static final short NO_MODIFICATION_ALLOWED_ERR- See Also:
-
NOT_FOUND_ERR
public static final short NOT_FOUND_ERR- See Also:
-
NOT_SUPPORTED_ERR
public static final short NOT_SUPPORTED_ERR- See Also:
-
INUSE_ATTRIBUTE_ERR
public static final short INUSE_ATTRIBUTE_ERR- See Also:
-
INVALID_STATE_ERR
public static final short INVALID_STATE_ERR- See Also:
-
SYNTAX_ERR
public static final short SYNTAX_ERR- See Also:
-
INVALID_MODIFICATION_ERR
public static final short INVALID_MODIFICATION_ERR- See Also:
-
NAMESPACE_ERR
public static final short NAMESPACE_ERR- See Also:
-
INVALID_ACCESS_ERR
public static final short INVALID_ACCESS_ERR- See Also:
-
VALIDATION_ERR
public static final short VALIDATION_ERR- See Also:
-
TYPE_MISMATCH_ERR
public static final short TYPE_MISMATCH_ERR- See Also:
-
SYNTAX_ERROR
public static final int SYNTAX_ERRORSYNTAX_ERROR = 0.- See Also:
-
INDEX_OUT_OF_BOUNDS
public static final int INDEX_OUT_OF_BOUNDSINDEX_OUT_OF_BOUNDS = 1.- See Also:
-
READ_ONLY_STYLE_SHEET
public static final int READ_ONLY_STYLE_SHEETREAD_ONLY_STYLE_SHEET = 2.- See Also:
-
EXPECTING_STYLE_RULE
public static final int EXPECTING_STYLE_RULEEXPECTING_STYLE_RULE = 3.- See Also:
-
EXPECTING_CHARSET_RULE
public static final int EXPECTING_CHARSET_RULEEXPECTING_CHARSET_RULE = 4.- See Also:
-
EXPECTING_IMPORT_RULE
public static final int EXPECTING_IMPORT_RULEEXPECTING_IMPORT_RULE = 5.- See Also:
-
EXPECTING_MEDIA_RULE
public static final int EXPECTING_MEDIA_RULEEXPECTING_MEDIA_RULE = 6.- See Also:
-
EXPECTING_FONT_FACE_RULE
public static final int EXPECTING_FONT_FACE_RULEEXPECTING_FONT_FACE_RULE = 7.- See Also:
-
EXPECTING_PAGE_RULE
public static final int EXPECTING_PAGE_RULEEXPECTING_PAGE_RULE = 8.- See Also:
-
FLOAT_ERROR
public static final int FLOAT_ERRORFLOAT_ERROR = 9.- See Also:
-
STRING_ERROR
public static final int STRING_ERRORSTRING_ERROR = 10.- See Also:
-
CHARSET_NOT_FIRST
public static final int CHARSET_NOT_FIRSTCHARSET_NOT_FIRST = 11.- See Also:
-
CHARSET_NOT_UNIQUE
public static final int CHARSET_NOT_UNIQUECHARSET_NOT_UNIQUE = 12.- See Also:
-
IMPORT_NOT_FIRST
public static final int IMPORT_NOT_FIRSTIMPORT_NOT_FIRST = 13.- See Also:
-
NOT_FOUND
public static final int NOT_FOUNDNOT_FOUND = 14.- See Also:
-
NOT_IMPLEMENTED
public static final int NOT_IMPLEMENTEDNOT_IMPLEMENTED = 15.- See Also:
-
INSERT_BEFORE_IMPORT
public static final int INSERT_BEFORE_IMPORTINSERT_BEFORE_IMPORT = 16.- See Also:
-
-
Constructor Details
-
DOMException
-
DOMException
public DOMException(short code, short codeMessage) -
DOMException
public DOMException(short code, int codeMessage) -
DOMException
Ctor.- Parameters:
code- the codemessageKey- the message keyinfo- additional info
-
-
Method Details
-
getCode
public short getCode()Getter for the field
code. -
getMessage
Getter for the field
message.- Overrides:
getMessagein classThrowable
-