Class AddToCartApiError
- java.lang.Object
- 
- com.broadleafcommerce.common.error.ApiError
- 
- com.broadleafcommerce.cartoperation.web.endpoint.exception.AddToCartApiError
 
 
- 
 public final class AddToCartApiError extends com.broadleafcommerce.common.error.ApiErrorApiErrorused for errors duringCartItemvalidation.- Author:
- Nathan Moore (nathandmoore)
 
- 
- 
Constructor SummaryConstructors Constructor Description AddToCartApiError(@NonNull CartItemValidationException validationException)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(Object other)booleanequals(Object o)Map<String,List<com.broadleafcommerce.cart.client.domain.ConfigError>>getAttributeConfigErrors()Map of configuration errors for related to the item'sCartItem#attributeChoices()that are derived from ProductOptions where the key is the attribute name.Map<String,List<com.broadleafcommerce.cart.client.domain.ConfigError>>getDependentItemConfigErrors()Map of configuration errors for related to the item'sCartItem.getDependentCartItems()where the key is the item's identifier such as ProductOption choiceKey.List<com.broadleafcommerce.cart.client.domain.ConfigError>getGlobalConfigErrors()List of global configuration errors for theCartIteminthashCode()StringtoString()- 
Methods inherited from class com.broadleafcommerce.common.error.ApiErroraddError, getException, getGlobalErrors, getStatus, getStatusCode, getTimestamp, getTitle, getType, setException, setTimestamp, toResponseEntity, withException, withGlobalErrors, withStatus, withStatusCode, withTimestamp, withTitle, withType
 
- 
 
- 
- 
- 
Constructor Detail- 
AddToCartApiErrorpublic AddToCartApiError(@NonNull @NonNull @NonNull CartItemValidationException validationException)
 
- 
 - 
Method Detail- 
getGlobalConfigErrorspublic List<com.broadleafcommerce.cart.client.domain.ConfigError> getGlobalConfigErrors() List of global configuration errors for theCartItem- Returns:
- List of global configuration errors
 
 - 
getAttributeConfigErrorspublic Map<String,List<com.broadleafcommerce.cart.client.domain.ConfigError>> getAttributeConfigErrors() Map of configuration errors for related to the item'sCartItem#attributeChoices()that are derived from ProductOptions where the key is the attribute name.- Returns:
- Map of configuration errors for related to the item's
         CartItem#attributeChoices()that are derived from ProductOptions where the key is the attribute name.
 
 - 
getDependentItemConfigErrorspublic Map<String,List<com.broadleafcommerce.cart.client.domain.ConfigError>> getDependentItemConfigErrors() Map of configuration errors for related to the item'sCartItem.getDependentCartItems()where the key is the item's identifier such as ProductOption choiceKey.- Returns:
- Map of configuration errors for related to this item's the item's
         CartItem.getDependentCartItems().
 
 - 
canEqualprotected boolean canEqual(Object other) 
 - 
toStringpublic String toString() - Overrides:
- toStringin class- com.broadleafcommerce.common.error.ApiError
 
 
- 
 
-