org.w3c.css.sac

Class CSSException

Known Direct Subclasses:
CSSParseException

public class CSSException
extends RuntimeException

Field Summary

static short
SAC_NOT_SUPPORTED_ERR
If the operation is not supported
static short
SAC_SYNTAX_ERR
If an invalid or illegal string is specified
static short
SAC_UNSPECIFIED_ERR
this error is unspecified.
protected static String
S_SAC_NOT_SUPPORTED_ERR
protected static String
S_SAC_SYNTAX_ERR
protected static String
S_SAC_UNSPECIFIED_ERR
protected short
code
protected Exception
e
The internal exception.
protected String
s

Constructor Summary

CSSException()
Creates a new CSSException
CSSException(Exception e)
Creates a new CSSException with an embeded exception.
CSSException(String s)
Creates a new CSSException
CSSException(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.

Method Summary

short
getCode()
returns the error code for this exception.
Exception
getException()
Returns the internal exception if any, null otherwise.
String
getMessage()
Returns the detail message of this throwable object.

Field Details

SAC_NOT_SUPPORTED_ERR

public static final short SAC_NOT_SUPPORTED_ERR
If the operation is not supported
Field Value:
1

SAC_SYNTAX_ERR

public static final short SAC_SYNTAX_ERR
If an invalid or illegal string is specified
Field Value:
2

SAC_UNSPECIFIED_ERR

public static final short SAC_UNSPECIFIED_ERR
this error is unspecified.
Field Value:
0

S_SAC_NOT_SUPPORTED_ERR

protected static final String S_SAC_NOT_SUPPORTED_ERR

S_SAC_SYNTAX_ERR

protected static final String S_SAC_SYNTAX_ERR

S_SAC_UNSPECIFIED_ERR

protected static final String S_SAC_UNSPECIFIED_ERR

code

protected short code

e

protected Exception e
The internal exception.

s

protected String s

Constructor Details

CSSException

public CSSException()
Creates a new CSSException

CSSException

public CSSException(Exception e)
Creates a new CSSException with an embeded exception.
Parameters:

CSSException

public CSSException(String s)
Creates a new CSSException

CSSException

public CSSException(short code)
Creates a new CSSException with a specific code.
Parameters:

CSSException

public CSSException(short code,
                    String s,
                    Exception e)
Creates a new CSSException with an embeded exception and a specified message.
Parameters:
code - the specified code.
e - the embeded exception.

Method Details

getCode

public short getCode()
returns the error code for this exception.

getException

public Exception getException()
Returns the internal exception if any, null otherwise.

getMessage

public String getMessage()
Returns the detail message of this throwable object.
Returns:
the detail message of this Throwable, or null if this Throwable does not have a detail message.