Class StyleSheetParserException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.eclipse.birt.core.exception.BirtException
-
- org.eclipse.birt.report.model.api.ModelException
-
- org.eclipse.birt.report.model.api.css.StyleSheetParserException
-
- All Implemented Interfaces:
java.io.Serializable
public class StyleSheetParserException extends ModelException
Exception thrown if an error occurs when translating an external style sheet to our ownCssStyleSheet
. It records all the details about the handler.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
DESIGN_EXCEPTION_INVALID_SHORT_HAND_CSSPROPERTY_VALUE
The value of the short-hand property is invalid to CSS2.static java.lang.String
DESIGN_EXCEPTION_INVALID_SIMPLE_CSSPROPERTY_VALUE
The property value is invalid to Model ROM.static java.lang.String
DESIGN_EXCEPTION_PROPERTY_NOT_SUPPORTED
The CSS property is not supported by BIRT.static java.lang.String
DESIGN_EXCEPTION_RULE_NOT_SUPPORTED
The rule is not supported.static java.lang.String
DESIGN_EXCEPTION_STYLE_NOT_SUPPORTED
The style is not supported.-
Fields inherited from class org.eclipse.birt.report.model.api.ModelException
PLUGIN_ID
-
-
Constructor Summary
Constructors Constructor Description StyleSheetParserException(java.lang.String name, java.lang.String errCode)
Constructs the parser exception with the error code.StyleSheetParserException(java.lang.String errCode, java.lang.String propName, java.lang.String value)
Constructs a parser exception with the error code and string arguments used to format error messages.StyleSheetParserException(java.lang.String errCode, java.lang.String propName, java.lang.String value, java.lang.Throwable cause)
Constructs a parser exception with the error code, string arguments used to format error messages and nested exception.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getCSSPropertyName()
Gets the CSS property name.java.lang.String
getCSSValue()
Gets the CSS property text.java.lang.String
getLocalizedMessage()
java.lang.String
getName()
Gets the name of the style or rule which has the errors.-
Methods inherited from class org.eclipse.birt.core.exception.BirtException
getErrorCode, getLocalizedMessage, getMessage, getPluginId, getSeverity, setSeverity
-
-
-
-
Field Detail
-
DESIGN_EXCEPTION_RULE_NOT_SUPPORTED
public static final java.lang.String DESIGN_EXCEPTION_RULE_NOT_SUPPORTED
The rule is not supported. BIRT only supports the style rules other than media rules, page rules, charset rules and so on.- See Also:
- Constant Field Values
-
DESIGN_EXCEPTION_STYLE_NOT_SUPPORTED
public static final java.lang.String DESIGN_EXCEPTION_STYLE_NOT_SUPPORTED
The style is not supported. BIRT only support selectors like H1, p.table and .table. All other kinds of selectors are not supported.- See Also:
- Constant Field Values
-
DESIGN_EXCEPTION_PROPERTY_NOT_SUPPORTED
public static final java.lang.String DESIGN_EXCEPTION_PROPERTY_NOT_SUPPORTED
The CSS property is not supported by BIRT.- See Also:
- Constant Field Values
-
DESIGN_EXCEPTION_INVALID_SHORT_HAND_CSSPROPERTY_VALUE
public static final java.lang.String DESIGN_EXCEPTION_INVALID_SHORT_HAND_CSSPROPERTY_VALUE
The value of the short-hand property is invalid to CSS2.- See Also:
- Constant Field Values
-
DESIGN_EXCEPTION_INVALID_SIMPLE_CSSPROPERTY_VALUE
public static final java.lang.String DESIGN_EXCEPTION_INVALID_SIMPLE_CSSPROPERTY_VALUE
The property value is invalid to Model ROM.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
StyleSheetParserException
public StyleSheetParserException(java.lang.String name, java.lang.String errCode)
Constructs the parser exception with the error code.- Parameters:
name
- the name of the style or rule which has errorserrCode
- the error code of the exception
-
StyleSheetParserException
public StyleSheetParserException(java.lang.String errCode, java.lang.String propName, java.lang.String value)
Constructs a parser exception with the error code and string arguments used to format error messages.- Parameters:
errCode
- used to retrieve a piece of externalized message displayed to end userpropName
- the property namevalue
- the property value
-
StyleSheetParserException
public StyleSheetParserException(java.lang.String errCode, java.lang.String propName, java.lang.String value, java.lang.Throwable cause)
Constructs a parser exception with the error code, string arguments used to format error messages and nested exception.- Parameters:
errCode
- used to retrieve a piece of externalized message displayed to end userpropName
- the property namevalue
- the property valuecause
- the nested exception
-
-
Method Detail
-
getName
public java.lang.String getName()
Gets the name of the style or rule which has the errors.- Returns:
- the name of the style or the rule
-
getCSSPropertyName
public java.lang.String getCSSPropertyName()
Gets the CSS property name.- Returns:
- the CSS property name
-
getCSSValue
public java.lang.String getCSSValue()
Gets the CSS property text.- Returns:
- the CSS property text
-
getLocalizedMessage
public java.lang.String getLocalizedMessage()
- Overrides:
getLocalizedMessage
in classorg.eclipse.birt.core.exception.BirtException
-
-