Class PropertyNameException

java.lang.Object
java.lang.Throwable
java.lang.Exception
org.eclipse.birt.core.exception.BirtException
All Implemented Interfaces:
Serializable

public class PropertyNameException extends SemanticException
Exception thrown when a property name is invalid.
See Also:
  • Field Details

    • name

      protected 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 String DESIGN_EXCEPTION_PROPERTY_NAME_INVALID
      The property name is not defined on the element.
      See Also:
    • DESIGN_EXCEPTION_MEMBER_NAME_INVALID

      public static final String DESIGN_EXCEPTION_MEMBER_NAME_INVALID
      The member name is not defined on a structure.
      See Also:
  • Constructor Details

    • PropertyNameException

      public PropertyNameException(org.eclipse.birt.report.model.core.DesignElement obj, 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, 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

      public String getPropertyName()
      Returns the invalid property name.
      Returns:
      the invalid property name.
    • getMemberName

      public String getMemberName()
      Return the invalid member name.
      Returns:
      the invalid member name.
    • getLocalizedMessage

      public String getLocalizedMessage()
      Overrides:
      getLocalizedMessage in class SemanticException