public class SemanticException extends ModelException
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
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.
|
protected org.eclipse.birt.report.model.core.DesignElement |
element
The element with semantic error.
|
PLUGIN_ID
Modifier | Constructor and Description |
---|---|
|
SemanticException(org.eclipse.birt.report.model.core.DesignElement element,
java.lang.String errCode)
Constructor.
|
|
SemanticException(org.eclipse.birt.report.model.core.DesignElement element,
java.lang.String[] values,
java.lang.String errCode)
Constructor.
|
|
SemanticException(org.eclipse.birt.report.model.core.DesignElement element,
java.lang.String[] values,
java.lang.String errCode,
java.lang.Throwable cause)
Constructor.
|
|
SemanticException(org.eclipse.birt.report.model.core.DesignElement element,
java.lang.String errCode,
java.lang.Throwable cause)
Constructor.
|
protected |
SemanticException(java.lang.String errCode)
Constructor.
|
|
SemanticException(java.lang.String pluginId,
java.lang.String errorCode,
java.lang.Object[] args,
java.util.ResourceBundle bundle)
Constructs a new model exception.
|
|
SemanticException(java.lang.String pluginId,
java.lang.String errorCode,
java.lang.Object[] args,
java.util.ResourceBundle bundle,
java.lang.Throwable cause)
Constructs a new model exception.
|
|
SemanticException(java.lang.String pluginId,
java.lang.String errorCode,
java.lang.Object[] args,
java.lang.Throwable cause)
Constructs a new model exception.
|
|
SemanticException(java.lang.String pluginId,
java.lang.String errorCode,
java.lang.Object arg0,
java.util.ResourceBundle bundle)
Constructs a new model exception.
|
|
SemanticException(java.lang.String pluginId,
java.lang.String errorCode,
java.lang.Object arg0,
java.util.ResourceBundle bundle,
java.lang.Throwable cause)
Constructs a new model exception.
|
|
SemanticException(java.lang.String pluginId,
java.lang.String errorCode,
java.util.ResourceBundle bundle)
Constructs a new model exception with no cause object.
|
|
SemanticException(java.lang.String pluginId,
java.lang.String errorCode,
java.util.ResourceBundle bundle,
java.lang.Throwable cause)
Constructs a new model exception.
|
Modifier and Type | Method and Description |
---|---|
org.eclipse.birt.report.model.core.DesignElement |
getElement()
Returns the element having semantic error.
|
protected static java.lang.String |
getElementName(org.eclipse.birt.report.model.core.DesignElement element)
Returns the element name if it exists.
|
java.lang.String |
getLocalizedMessage() |
java.lang.String |
getMessage() |
getErrorCode, getLocalizedMessage, getPluginId, getSeverity, setSeverity
public static final java.lang.String DESIGN_EXCEPTION__EXPORT_ELEMENT_FAIL
protected org.eclipse.birt.report.model.core.DesignElement element
protected SemanticException(java.lang.String errCode)
errCode
- the error codepublic SemanticException(org.eclipse.birt.report.model.core.DesignElement element, java.lang.String errCode)
element
- the element which has errorserrCode
- the error codepublic SemanticException(org.eclipse.birt.report.model.core.DesignElement element, java.lang.String errCode, java.lang.Throwable cause)
element
- the element which has errorserrCode
- the error codecause
- the nested exceptionpublic SemanticException(org.eclipse.birt.report.model.core.DesignElement element, java.lang.String[] values, java.lang.String errCode)
element
- the element which has errorsvalues
- value array used for error messageerrCode
- the error codepublic SemanticException(org.eclipse.birt.report.model.core.DesignElement element, java.lang.String[] values, java.lang.String errCode, java.lang.Throwable cause)
element
- the element which has errorsvalues
- value array used for error messageerrCode
- the error codecause
- the nested exceptionpublic SemanticException(java.lang.String pluginId, java.lang.String errorCode, java.util.ResourceBundle bundle)
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.public SemanticException(java.lang.String pluginId, java.lang.String errorCode, java.util.ResourceBundle bundle, java.lang.Throwable cause)
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 exceptionpublic SemanticException(java.lang.String pluginId, java.lang.String errorCode, java.lang.Object[] args, java.util.ResourceBundle bundle, java.lang.Throwable cause)
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 exceptionpublic SemanticException(java.lang.String pluginId, java.lang.String errorCode, java.lang.Object arg0, java.util.ResourceBundle bundle, java.lang.Throwable cause)
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 messagespublic SemanticException(java.lang.String pluginId, java.lang.String errorCode, java.lang.Object[] args, java.util.ResourceBundle bundle)
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 messagespublic SemanticException(java.lang.String pluginId, java.lang.String errorCode, java.lang.Object arg0, java.util.ResourceBundle bundle)
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 messagespublic SemanticException(java.lang.String pluginId, java.lang.String errorCode, java.lang.Object[] args, java.lang.Throwable cause)
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 messagespublic org.eclipse.birt.report.model.core.DesignElement getElement()
protected static java.lang.String getElementName(org.eclipse.birt.report.model.core.DesignElement element)
element
- the design elementpublic java.lang.String getMessage()
getMessage
in class org.eclipse.birt.core.exception.BirtException
public java.lang.String getLocalizedMessage()
getLocalizedMessage
in class org.eclipse.birt.core.exception.BirtException
Copyright © 2008 Actuate Corp. All rights reserved.