Class InventoryUnavailableException

  • All Implemented Interfaces:
    Serializable

    public class InventoryUnavailableException
    extends RuntimeException
    Exception to indicate that inventory was unavailable, typically after trying to reserve inventory.
    Author:
    Kelly Tisdell
    See Also:
    Serialized Form
    • Constructor Detail

      • InventoryUnavailableException

        public InventoryUnavailableException​(Map<String,​String> itemFailureMessages)
      • InventoryUnavailableException

        public InventoryUnavailableException​(String message,
                                             Map<String,​String> itemFailureMessages)
      • InventoryUnavailableException

        public InventoryUnavailableException​(String message,
                                             Throwable cause,
                                             Map<String,​String> itemFailureMessages)
      • InventoryUnavailableException

        public InventoryUnavailableException​(Throwable cause,
                                             Map<String,​String> itemFailureMessages)
      • InventoryUnavailableException

        public InventoryUnavailableException​(String message,
                                             Throwable cause,
                                             boolean enableSuppression,
                                             boolean writableStackTrace,
                                             Map<String,​String> itemFailureMessages)
    • Method Detail

      • getItemFailureMessages

        public Map<String,​String> getItemFailureMessages()
        Line item error messages to indicate which cart items were unavailable. These are typically identified by CartItem ids.
        Returns:
        Line item error messages used to describe issues with individual fields, cart items, etc.