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:
java.io.Serializable
public class PropertyNameException extends SemanticException
Exception thrown when a property name is invalid.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
DESIGN_EXCEPTION_MEMBER_NAME_INVALID
The member name is not defined on a structure.static java.lang.String
DESIGN_EXCEPTION_PROPERTY_NAME_INVALID
The property name is not defined on the element.protected java.lang.String
name
The property/member name that caused the error.protected IStructure
struct
A structure object.-
Fields inherited from class org.eclipse.birt.report.model.api.activity.SemanticException
DESIGN_EXCEPTION__EXPORT_ELEMENT_FAIL, element
-
Fields inherited from class org.eclipse.birt.report.model.api.ModelException
PLUGIN_ID
-
-
Constructor Summary
Constructors Constructor Description PropertyNameException(org.eclipse.birt.report.model.core.DesignElement obj, java.lang.String propName)
Constructor.PropertyNameException(org.eclipse.birt.report.model.core.DesignElement obj, IStructure struct, java.lang.String memberName)
Constructs a exception given a structure and its element and the invalid member name.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getLocalizedMessage()
java.lang.String
getMemberName()
Return the invalid member name.java.lang.String
getPropertyName()
Returns the invalid property name.-
Methods inherited from class org.eclipse.birt.report.model.api.activity.SemanticException
getElement, getElementName, getMessage
-
Methods inherited from class org.eclipse.birt.core.exception.BirtException
getErrorCode, getLocalizedMessage, getPluginId, getSeverity, setSeverity
-
-
-
-
Field Detail
-
name
protected java.lang.String name
The property/member name that caused the error.
-
struct
protected IStructure struct
A structure object.
-
DESIGN_EXCEPTION_PROPERTY_NAME_INVALID
public static final java.lang.String DESIGN_EXCEPTION_PROPERTY_NAME_INVALID
The property name is not defined on the element.- See Also:
- Constant Field Values
-
DESIGN_EXCEPTION_MEMBER_NAME_INVALID
public static final java.lang.String DESIGN_EXCEPTION_MEMBER_NAME_INVALID
The member name is not defined on a structure.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
PropertyNameException
public PropertyNameException(org.eclipse.birt.report.model.core.DesignElement obj, java.lang.String propName)
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, java.lang.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 Detail
-
getPropertyName
public java.lang.String getPropertyName()
Returns the invalid property name.- Returns:
- the invalid property name.
-
getMemberName
public java.lang.String getMemberName()
Return the invalid member name.- Returns:
- the invalid member name.
-
getLocalizedMessage
public java.lang.String getLocalizedMessage()
- Overrides:
getLocalizedMessage
in classSemanticException
-
-