Class SemanticException
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.activity.SemanticException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ContentException
,CssException
,CustomMsgException
,EncryptionException
,ExtendedElementException
,ExtendsException
,LibraryException
,NameException
,PropertyNameException
,PropertyValueException
,SemanticError
,StyleException
,TemplateException
,ThemeException
,UserPropertyException
Represents exceptions encountered during parsing the xml file, it will
include a reference to the element which causes the error.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
The error code that indicates the element can not be exported to the library file, for it self or any of its contents has duplicate name with that in the library file and the element in the library can not be dropped.protected org.eclipse.birt.report.model.core.DesignElement
The element with semantic error.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
ConstructorsModifierConstructorDescriptionprotected
SemanticException
(String errCode) Constructor.SemanticException
(String pluginId, String errorCode, Object[] args, Throwable cause) Constructs a new model exception.SemanticException
(String pluginId, String errorCode, Object[] args, ResourceBundle bundle) Constructs a new model exception.SemanticException
(String pluginId, String errorCode, Object[] args, ResourceBundle bundle, Throwable cause) Constructs a new model exception.SemanticException
(String pluginId, String errorCode, Object arg0, ResourceBundle bundle) Constructs a new model exception.SemanticException
(String pluginId, String errorCode, Object arg0, ResourceBundle bundle, Throwable cause) Constructs a new model exception.SemanticException
(String pluginId, String errorCode, ResourceBundle bundle) Constructs a new model exception with no cause object.SemanticException
(String pluginId, String errorCode, ResourceBundle bundle, Throwable cause) Constructs a new model exception.SemanticException
(org.eclipse.birt.report.model.core.DesignElement element, String errCode) Constructor.SemanticException
(org.eclipse.birt.report.model.core.DesignElement element, String[] values, String errCode) Constructor.SemanticException
(org.eclipse.birt.report.model.core.DesignElement element, String[] values, String errCode, Throwable cause) Constructor.SemanticException
(org.eclipse.birt.report.model.core.DesignElement element, String errCode, Throwable cause) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.birt.report.model.core.DesignElement
Returns the element having semantic error.protected static String
getElementName
(org.eclipse.birt.report.model.core.DesignElement element) Returns the element name if it exists.Methods inherited from class org.eclipse.birt.core.exception.BirtException
getErrorCode, getLocalizedMessage, getPluginId, getSeverity, setSeverity
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
DESIGN_EXCEPTION__EXPORT_ELEMENT_FAIL
The error code that indicates the element can not be exported to the library file, for it self or any of its contents has duplicate name with that in the library file and the element in the library can not be dropped.- See Also:
-
element
protected org.eclipse.birt.report.model.core.DesignElement elementThe element with semantic error.
-
-
Constructor Details
-
SemanticException
Constructor.- Parameters:
errCode
- the error code
-
SemanticException
Constructor.- Parameters:
element
- the element which has errorserrCode
- the error code
-
SemanticException
public SemanticException(org.eclipse.birt.report.model.core.DesignElement element, String errCode, Throwable cause) Constructor.- Parameters:
element
- the element which has errorserrCode
- the error codecause
- the nested exception
-
SemanticException
public SemanticException(org.eclipse.birt.report.model.core.DesignElement element, String[] values, String errCode) Constructor.- Parameters:
element
- the element which has errorsvalues
- value array used for error messageerrCode
- the error code
-
SemanticException
public SemanticException(org.eclipse.birt.report.model.core.DesignElement element, String[] values, String errCode, Throwable cause) Constructor.- Parameters:
element
- the element which has errorsvalues
- value array used for error messageerrCode
- the error codecause
- the nested exception
-
SemanticException
Constructs a new model exception with no cause object.- Parameters:
pluginId
- Returns the unique identifier of the plug-in associated with this exceptionerrorCode
- used to retrieve a piece of externalized message displayed to end user.bundle
- the resourceBundle used to translate the message.
-
SemanticException
Constructs a new model exception.- Parameters:
pluginId
- Returns the unique identifier of the plug-in associated with this exceptionerrorCode
- used to retrieve a piece of externalized message displayed to end user.bundle
- the resourceBundle used to translate the message.cause
- the nested exception
-
SemanticException
public SemanticException(String pluginId, String errorCode, Object[] args, ResourceBundle bundle, Throwable cause) Constructs a new model exception.- Parameters:
pluginId
- Returns the unique identifier of the plug-in associated with this exceptionerrorCode
- used to retrieve a piece of externalized message displayed to end user.bundle
- the resourceBundle used to translate the message.args
- string arguments used to format error messagescause
- the nested exception
-
SemanticException
public SemanticException(String pluginId, String errorCode, Object arg0, ResourceBundle bundle, Throwable cause) Constructs a new model exception.- Parameters:
pluginId
- Returns the unique identifier of the plug-in associated with this exceptionerrorCode
- used to retrieve a piece of externalized message displayed to end user.bundle
- the resourceBundle used to translate the message.cause
- the nested exceptionarg0
- first argument used to format error messages
-
SemanticException
Constructs a new model exception.- Parameters:
pluginId
- Returns the unique identifier of the plug-in associated with this exceptionerrorCode
- used to retrieve a piece of externalized message displayed to end user.bundle
- the resourceBundle used to translate the message.args
- string arguments used to format error messages
-
SemanticException
Constructs a new model exception.- Parameters:
pluginId
- Returns the unique identifier of the plug-in associated with this exceptionerrorCode
- used to retrieve a piece of externalized message displayed to end user.bundle
- the resourceBundle used to translate the message.arg0
- first argument used to format error messages
-
SemanticException
Constructs a new model exception.- Parameters:
pluginId
- Returns the unique identifier of the plug-in associated with this exceptionerrorCode
- used to retrieve a piece of externalized message displayed to end user.cause
- the nested exceptionargs
- string arguments used to format error messages
-
-
Method Details
-
getElement
public org.eclipse.birt.report.model.core.DesignElement getElement()Returns the element having semantic error.- Returns:
- the element having semantic error
-
getElementName
Returns the element name if it exists.- Parameters:
element
- the design element- Returns:
- the element name if it exists. Otherwise, return empty string.
-
getMessage
- Overrides:
getMessage
in classorg.eclipse.birt.core.exception.BirtException
-
getLocalizedMessage
- Overrides:
getLocalizedMessage
in classorg.eclipse.birt.core.exception.BirtException
-