org.eclipse.birt.report.model.api.css
Class StyleSheetParserException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.eclipse.birt.core.exception.BirtException
              extended by org.eclipse.birt.report.model.api.ModelException
                  extended by 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 own CssStyleSheet. It records all the details about the handler.

See Also:
Serialized Form

Field Summary
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
 
Fields inherited from class org.eclipse.birt.core.exception.BirtException
CANCEL, ERROR, INFO, oaMessageArguments, OK, pluginId, rb, severity, sResourceKey, WARNING
 
Constructor Summary
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
 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
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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 errors
errCode - 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 user
propName - the property name
value - 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 user
propName - the property name
value - the property value
cause - 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 class org.eclipse.birt.core.exception.BirtException


Copyright © 2008 Actuate Corp. All rights reserved.