Class MissingRequiredKeyAttributeValueException

  • All Implemented Interfaces:
    java.io.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:
    Serialized Form
    • Constructor Detail

      • 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 Detail

      • getViolatedAttribute

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