Class PropertyNameException
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.PropertyNameException
- All Implemented Interfaces:
Serializable
Exception thrown when a property name is invalid.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe member name is not defined on a structure.static final StringThe property name is not defined on the element.protected StringThe property/member name that caused the error.protected IStructureA structure object.Fields inherited from class SemanticException
DESIGN_EXCEPTION__EXPORT_ELEMENT_FAIL, elementFields inherited from class ModelException
PLUGIN_IDFields inherited from class org.eclipse.birt.core.exception.BirtException
CANCEL, ERROR, INFO, oaMessageArguments, OK, pluginId, rb, severity, sResourceKey, WARNING -
Constructor Summary
ConstructorsConstructorDescriptionPropertyNameException(org.eclipse.birt.report.model.core.DesignElement obj, String propName) Constructor.PropertyNameException(org.eclipse.birt.report.model.core.DesignElement obj, IStructure struct, String memberName) Constructs a exception given a structure and its element and the invalid member name. -
Method Summary
Modifier and TypeMethodDescriptionReturn the invalid member name.Returns the invalid property name.Methods inherited from class SemanticException
getElement, getElementName, getMessageMethods inherited from class org.eclipse.birt.core.exception.BirtException
getErrorCode, getLocalizedMessage, getPluginId, getSeverity, setSeverityMethods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
name
The property/member name that caused the error. -
struct
A structure object. -
DESIGN_EXCEPTION_PROPERTY_NAME_INVALID
The property name is not defined on the element.- See Also:
-
DESIGN_EXCEPTION_MEMBER_NAME_INVALID
The member name is not defined on a structure.- See Also:
-
-
Constructor Details
-
PropertyNameException
Constructor.- Parameters:
obj- the element that has the property.propName- the property name that caused the error
-
PropertyNameException
public PropertyNameException(org.eclipse.birt.report.model.core.DesignElement obj, IStructure struct, String memberName) Constructs a exception given a structure and its element and the invalid member name.- Parameters:
obj- the element that has the structure.struct- the structure that doesn't contain the member.memberName- the member name that caused the exception.
-
-
Method Details
-
getPropertyName
Returns the invalid property name.- Returns:
- the invalid property name.
-
getMemberName
-
getLocalizedMessage
- Overrides:
getLocalizedMessagein classSemanticException
-