Class CartApprovalValidationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.broadleafcommerce.cartoperation.exception.CartApprovalValidationException
- All Implemented Interfaces:
Serializable
Thrown when an issue is encountered in the
CartApprovalValidationService
- Author:
- Susana Cruz (susanaccruz)
- See Also:
-
Constructor Summary
ConstructorDescriptionCartApprovalValidationException
(@NonNull String failureType, @NonNull String message, @NonNull com.broadleafcommerce.cart.client.domain.Cart cart) CartApprovalValidationException
(@NonNull String failureType, @NonNull String message, @NonNull Map<String, String> failureMessages, @NonNull com.broadleafcommerce.cart.client.domain.Cart cart) -
Method Summary
Modifier and TypeMethodDescriptionThe map that can be used to specify the additional info for this exception.com.broadleafcommerce.cart.client.domain.Cart
getCart()
The cart whose approval has failed.Failure messages used to describe issues with individual fields or array items (keys), providing an explanation for why each is misconfigured (value).The category of workflow failure that caused this exception.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
CartApprovalValidationException
-
CartApprovalValidationException
-
-
Method Details
-
getCart
public com.broadleafcommerce.cart.client.domain.Cart getCart()The cart whose approval has failed.- Returns:
- The cart whose approval has failed.
-
getFailureType
The category of workflow failure that caused this exception.- Returns:
- The category of workflow failure that caused this exception.
-
getFailureMessages
Failure messages used to describe issues with individual fields or array items (keys), providing an explanation for why each is misconfigured (value).- Returns:
- Line item error messages used to describe issues with individual fields or array items.
-
getAdditionalInfo
The map that can be used to specify the additional info for this exception.- Returns:
- the map with additional info for this exception
-