Package org.htmlunit.cssparser.parser
Class CSSException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.htmlunit.cssparser.parser.CSSException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
CSSParseException
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static enum
Enum for error codes. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new CSSException.Creates a new CSSException with an embeded exception.CSSException
(String message) Creates a new CSSException.Creates a new CSSException with a specific code.CSSException
(CSSException.ErrorCode code, String message, Exception e) Creates a new CSSException with an embeded exception and a specified message. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
message_
-
code_
-
-
Constructor Details
-
CSSException
public CSSException()Creates a new CSSException. -
CSSException
Creates a new CSSException.- Parameters:
message
- the message
-
CSSException
Creates a new CSSException with an embeded exception.- Parameters:
e
- the embeded exception.
-
CSSException
Creates a new CSSException with a specific code.- Parameters:
code
- a the embeded exception.
-
CSSException
Creates a new CSSException with an embeded exception and a specified message.- Parameters:
code
- the specified codemessage
- the messagee
- the embeded exception
-
-
Method Details
-
getMessage
Returns the detail message of this throwable object.- Overrides:
getMessage
in classThrowable
- Returns:
- the detail message of this Throwable, or null if this Throwable does not have a detail message.
-
getCode
- Returns:
- the error code for this exception.
-