public class CustomMsgException extends SemanticException
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DESIGN_EXCEPTION_DUPLICATE_LOCALE
Duplicated locale for one single message.
|
static java.lang.String |
DESIGN_EXCEPTION_INVALID_LOCALE
Invalid locale.
|
static java.lang.String |
DESIGN_EXCEPTION_RESOURCE_KEY_REQUIRED
The resource key must be specified for the Translation.
|
static java.lang.String |
DESIGN_EXCEPTION_TRANSLATION_NOT_FOUND
translation is not found in the report.
|
DESIGN_EXCEPTION__EXPORT_ELEMENT_FAIL, element
PLUGIN_ID
Constructor and Description |
---|
CustomMsgException(org.eclipse.birt.report.model.core.DesignElement element,
java.lang.String errCode)
Constructs the exception with error code.
|
CustomMsgException(org.eclipse.birt.report.model.core.DesignElement element,
java.lang.String resourceKey,
java.lang.String locale,
java.lang.String errCode)
Constructs the exception with error code.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getLocalizedMessage() |
getElement, getElementName, getMessage
getErrorCode, getLocalizedMessage, getPluginId, getSeverity, setSeverity
public static final java.lang.String DESIGN_EXCEPTION_RESOURCE_KEY_REQUIRED
public static final java.lang.String DESIGN_EXCEPTION_DUPLICATE_LOCALE
public static final java.lang.String DESIGN_EXCEPTION_INVALID_LOCALE
public static final java.lang.String DESIGN_EXCEPTION_TRANSLATION_NOT_FOUND
public CustomMsgException(org.eclipse.birt.report.model.core.DesignElement element, java.lang.String errCode)
element
- the elementerrCode
- the error codepublic CustomMsgException(org.eclipse.birt.report.model.core.DesignElement element, java.lang.String resourceKey, java.lang.String locale, java.lang.String errCode)
element
- the elementresourceKey
- the resource key which is involved in this exceptionlocale
- the locale which is involved in this exceptionerrCode
- the error codepublic java.lang.String getLocalizedMessage()
getLocalizedMessage
in class SemanticException
Copyright © 2008 Actuate Corp. All rights reserved.