Class MissingRequiredKeyAttributeValueException

All Implemented Interfaces:
Serializable

public class MissingRequiredKeyAttributeValueException extends ItemSearchRequestValidationException
Indicates that a required key attribute is not specified or has null value for searching an item by its key.
See Also:
  • Constructor Details

    • MissingRequiredKeyAttributeValueException

      public MissingRequiredKeyAttributeValueException(ItemSearchRequest request, TypeAttributeDescriptor attribute)
      Instantiates this exception
      Parameters:
      request - request rejected due to the validation failure.
      attribute - required key attribute that had no value in the request.
  • Method Details

    • getViolatedAttribute

      public TypeAttributeDescriptor getViolatedAttribute()
      Retrieves attribute that failed validation
      Returns:
      a required key attribute that has no value in the request