public final class AddToCartApiError
extends com.broadleafcommerce.common.error.ApiError
ApiError
used for errors during CartItem
validation.Constructor and Description |
---|
AddToCartApiError(@NonNull CartItemValidationException validationException) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
Map<String,List<com.broadleafcommerce.cart.client.domain.ConfigError>> |
getAttributeConfigErrors()
Map of configuration errors for related to the item's
CartItem#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's
CartItem.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 the
CartItem |
int |
hashCode() |
String |
toString() |
addError, getException, getGlobalErrors, getStatus, getStatusCode, getTimestamp, getTitle, getType, setException, setTimestamp, toResponseEntity, withException, withGlobalErrors, withStatus, withStatusCode, withTimestamp, withTitle, withType
public AddToCartApiError(@NonNull @NonNull @NonNull CartItemValidationException validationException)
public List<com.broadleafcommerce.cart.client.domain.ConfigError> getGlobalConfigErrors()
CartItem
public Map<String,List<com.broadleafcommerce.cart.client.domain.ConfigError>> getAttributeConfigErrors()
CartItem#attributeChoices()
that are derived from ProductOptions where the key is the attribute name.CartItem#attributeChoices()
that are derived from ProductOptions where the
key is the attribute name.public Map<String,List<com.broadleafcommerce.cart.client.domain.ConfigError>> getDependentItemConfigErrors()
CartItem.getDependentCartItems()
where the key is the item's identifier such as
ProductOption choiceKey.CartItem.getDependentCartItems()
.protected boolean canEqual(Object other)
public String toString()
toString
in class com.broadleafcommerce.common.error.ApiError
Copyright © 2021. All rights reserved.