Class CustomMsgException
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
org.eclipse.birt.report.model.api.command.CustomMsgException
- All Implemented Interfaces:
Serializable
Reports an error during a user-defined message operation.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDuplicated locale for one single message.static final StringInvalid locale.static final StringThe resource key must be specified for the Translation.static final Stringtranslation is not found in the report.Fields inherited from class org.eclipse.birt.report.model.api.activity.SemanticException
DESIGN_EXCEPTION__EXPORT_ELEMENT_FAIL, elementFields inherited from class org.eclipse.birt.report.model.api.ModelException
PLUGIN_IDFields inherited from class org.eclipse.birt.core.exception.BirtException
CANCEL, ERROR, INFO, oaMessageArguments, OK, pluginId, rb, severity, sResourceKey, WARNING -
Constructor Summary
ConstructorsConstructorDescriptionCustomMsgException(org.eclipse.birt.report.model.core.DesignElement element, String errCode) Constructs the exception with error code.CustomMsgException(org.eclipse.birt.report.model.core.DesignElement element, String resourceKey, String locale, String errCode) Constructs the exception with error code. -
Method Summary
Methods inherited from class org.eclipse.birt.report.model.api.activity.SemanticException
getElement, getElementName, getMessageMethods inherited from class org.eclipse.birt.core.exception.BirtException
getErrorCode, getLocalizedMessage, getPluginId, getSeverity, setSeverityMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
DESIGN_EXCEPTION_RESOURCE_KEY_REQUIRED
The resource key must be specified for the Translation.- See Also:
-
DESIGN_EXCEPTION_DUPLICATE_LOCALE
Duplicated locale for one single message.- See Also:
-
DESIGN_EXCEPTION_INVALID_LOCALE
Invalid locale.- See Also:
-
DESIGN_EXCEPTION_TRANSLATION_NOT_FOUND
translation is not found in the report.- See Also:
-
-
Constructor Details
-
CustomMsgException
Constructs the exception with error code.- Parameters:
element- the elementerrCode- the error code
-
CustomMsgException
public CustomMsgException(org.eclipse.birt.report.model.core.DesignElement element, String resourceKey, String locale, String errCode) Constructs the exception with error code.- Parameters:
element- the elementresourceKey- the resource key which is involved in this exceptionlocale- the locale which is involved in this exceptionerrCode- the error code
-
-
Method Details
-
getLocalizedMessage
- Overrides:
getLocalizedMessagein classSemanticException
-