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:
Serializable

public class StyleSheetParserException extends ModelException
Exception thrown if an error occurs when translating an external style sheet to our own CssStyleSheet. It records all the details about the handler.
See Also:
  • Field Details

    • DESIGN_EXCEPTION_RULE_NOT_SUPPORTED

      public static final 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:
    • DESIGN_EXCEPTION_STYLE_NOT_SUPPORTED

      public static final 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:
    • DESIGN_EXCEPTION_PROPERTY_NOT_SUPPORTED

      public static final String DESIGN_EXCEPTION_PROPERTY_NOT_SUPPORTED
      The CSS property is not supported by BIRT.
      See Also:
    • DESIGN_EXCEPTION_INVALID_SHORT_HAND_CSSPROPERTY_VALUE

      public static final String DESIGN_EXCEPTION_INVALID_SHORT_HAND_CSSPROPERTY_VALUE
      The value of the short-hand property is invalid to CSS2.
      See Also:
    • DESIGN_EXCEPTION_INVALID_SIMPLE_CSSPROPERTY_VALUE

      public static final String DESIGN_EXCEPTION_INVALID_SIMPLE_CSSPROPERTY_VALUE
      The property value is invalid to Model ROM.
      See Also:
  • Constructor Details

    • StyleSheetParserException

      public StyleSheetParserException(String name, String errCode)
      Constructs the parser exception with the error code.
      Parameters:
      name - the name of the style or rule which has errors
      errCode - the error code of the exception
    • StyleSheetParserException

      public StyleSheetParserException(String errCode, String propName, 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 user
      propName - the property name
      value - the property value
    • StyleSheetParserException

      public StyleSheetParserException(String errCode, String propName, String value, 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 user
      propName - the property name
      value - the property value
      cause - the nested exception
  • Method Details

    • getName

      public 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 String getCSSPropertyName()
      Gets the CSS property name.
      Returns:
      the CSS property name
    • getCSSValue

      public String getCSSValue()
      Gets the CSS property text.
      Returns:
      the CSS property text
    • getLocalizedMessage

      public String getLocalizedMessage()
      Overrides:
      getLocalizedMessage in class org.eclipse.birt.core.exception.BirtException