Class UnknownAttributeException

All Implemented Interfaces:
Serializable

public class UnknownAttributeException extends MetaModelException
This type of exception is used when an invalid entity and attribute combination is encountered.
Since:
5.0
Author:
O. Kerpershoek
See Also:
  • Constructor Details

    • UnknownAttributeException

      public UnknownAttributeException(String message, String entityName, String attributeName)
      Constructs the exception using an entity and attribute name. Note: entityName or attributeName can be added to the message by providing the '{}' where you want to insert them. The order of insertion is always entityName and then attributeName
      Parameters:
      message - The message explaining the error that occurred.
      entityName - The name of the entity in which the attribute is not known.
      attributeName - The name of the attribute that is not defined in the given entity type.
    • UnknownAttributeException

      public UnknownAttributeException(String entityName, String attribute)
      Constructs the exception using an entity and attribute name.
      Parameters:
      entityName - The name of the entity in which the attribute is not known.
      attribute - The name of the attribute that is not defined in the given entity type.
  • Method Details

    • getEntityName

      public String getEntityName()
      This method returns the entity type for which the attribute was unknown.
      Returns:
      the entity type for which the attribute was unknown.
    • getAttributeName

      public String getAttributeName()
      This method returns the attribute name which was unknown in the entity type.
      Returns:
      the attribute name which was unknown in the entity type.