Class UnknownAttributeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.aquima.interactions.foundation.exception.AppException
com.aquima.interactions.metamodel.MetaModelException
com.aquima.interactions.metamodel.exception.UnknownAttributeException
- All Implemented Interfaces:
Serializable
This type of exception is used when an invalid entity and attribute combination is encountered.
- Since:
- 5.0
- Author:
- O. Kerpershoek
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionUnknownAttributeException
(String entityName, String attribute) Constructs the exception using an entity and attribute name.UnknownAttributeException
(String message, String entityName, String attributeName) Constructs the exception using an entity and attribute name. -
Method Summary
Modifier and TypeMethodDescriptionThis method returns the attribute name which was unknown in the entity type.This method returns the entity type for which the attribute was unknown.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
UnknownAttributeException
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
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
This method returns the entity type for which the attribute was unknown.- Returns:
- the entity type for which the attribute was unknown.
-
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.
-