public class CustomMsgException extends SemanticException
| 限定符和类型 | 字段和说明 |
|---|---|
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, elementPLUGIN_ID| 构造器和说明 |
|---|
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.
|
| 限定符和类型 | 方法和说明 |
|---|---|
java.lang.String |
getLocalizedMessage() |
getElement, getElementName, getMessagegetErrorCode, getLocalizedMessage, getPluginId, getSeverity, setSeveritypublic 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 在类中 SemanticExceptionCopyright © 2008 Actuate Corp. All rights reserved.