Package org.w3c.css.sac
Class CSSException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.w3c.css.sac.CSSException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
CSSParseException
- Version:
- $Revision: 1.3 $
- Author:
- Philippe Le Hegaret
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected short
protected Exception
The internal exception.protected String
protected static final String
protected static final String
protected static final String
static final short
If the operation is not supportedstatic final short
If an invalid or illegal string is specifiedstatic final short
this error is unspecified. -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new CSSExceptionCSSException
(short code) Creates a new CSSException with a specific code.CSSException
(short code, String s, Exception e) Creates a new CSSException with an embeded exception and a specified message.Creates a new CSSException with an embeded exception.Creates a new CSSException -
Method Summary
Modifier and TypeMethodDescriptionshort
getCode()
returns the error code for this exception.Returns the internal exception if any, null otherwise.Returns the detail message of this throwable object.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
s
-
SAC_UNSPECIFIED_ERR
public static final short SAC_UNSPECIFIED_ERRthis error is unspecified.- See Also:
-
SAC_NOT_SUPPORTED_ERR
public static final short SAC_NOT_SUPPORTED_ERRIf the operation is not supported- See Also:
-
SAC_SYNTAX_ERR
public static final short SAC_SYNTAX_ERRIf an invalid or illegal string is specified- See Also:
-
S_SAC_UNSPECIFIED_ERR
- See Also:
-
S_SAC_NOT_SUPPORTED_ERR
- See Also:
-
S_SAC_SYNTAX_ERR
- See Also:
-
e
The internal exception. -
code
protected short code
-
-
Constructor Details
-
CSSException
public CSSException()Creates a new CSSException -
CSSException
Creates a new CSSException -
CSSException
Creates a new CSSException with an embeded exception.- Parameters:
a
- the embeded exception.
-
CSSException
public CSSException(short code) Creates a new CSSException with a specific code.- Parameters:
a
- the embeded exception.
-
CSSException
Creates a new CSSException with an embeded exception and a specified message.- Parameters:
code
- the specified code.e
- 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
public short getCode()returns the error code for this exception. -
getException
Returns the internal exception if any, null otherwise.
-