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:
java.io.Serializable
- Direct Known Subclasses:
CSSParseException
public class CSSException extends java.lang.RuntimeException- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classCSSException.ErrorCodeEnum for error codes.
-
Field Summary
Fields Modifier and Type Field Description private CSSException.ErrorCodecode_private java.lang.Stringmessage_
-
Constructor Summary
Constructors Constructor Description CSSException()Creates a new CSSException.CSSException(java.lang.Exception e)Creates a new CSSException with an embeded exception.CSSException(java.lang.String message)Creates a new CSSException.CSSException(CSSException.ErrorCode code)Creates a new CSSException with a specific code.CSSException(CSSException.ErrorCode code, java.lang.String message, java.lang.Exception e)Creates a new CSSException with an embeded exception and a specified message.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CSSException.ErrorCodegetCode()java.lang.StringgetMessage()Returns the detail message of this throwable object.
-
-
-
Field Detail
-
message_
private java.lang.String message_
-
code_
private CSSException.ErrorCode code_
-
-
Constructor Detail
-
CSSException
public CSSException()
Creates a new CSSException.
-
CSSException
public CSSException(java.lang.String message)
Creates a new CSSException.- Parameters:
message- the message
-
CSSException
public CSSException(java.lang.Exception e)
Creates a new CSSException with an embeded exception.- Parameters:
e- the embeded exception.
-
CSSException
public CSSException(CSSException.ErrorCode code)
Creates a new CSSException with a specific code.- Parameters:
code- a the embeded exception.
-
CSSException
public CSSException(CSSException.ErrorCode code, java.lang.String message, java.lang.Exception e)
Creates a new CSSException with an embeded exception and a specified message.- Parameters:
code- the specified codemessage- the messagee- the embeded exception
-
-
Method Detail
-
getMessage
public java.lang.String getMessage()
Returns the detail message of this throwable object.- Overrides:
getMessagein classjava.lang.Throwable- Returns:
- the detail message of this Throwable, or null if this Throwable does not have a detail message.
-
getCode
public CSSException.ErrorCode getCode()
- Returns:
- the error code for this exception.
-
-