Class CartApprovalValidationException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.broadleafcommerce.cartoperation.exception.CartApprovalValidationException
All Implemented Interfaces:
Serializable

public class CartApprovalValidationException extends RuntimeException
Thrown when an issue is encountered in the CartApprovalValidationService
Author:
Susana Cruz (susanaccruz)
See Also:
  • Constructor Details

    • CartApprovalValidationException

      public CartApprovalValidationException(@NonNull @NonNull String failureType, @NonNull @NonNull String message, @NonNull @NonNull com.broadleafcommerce.cart.client.domain.Cart cart)
    • CartApprovalValidationException

      public CartApprovalValidationException(@NonNull @NonNull String failureType, @NonNull @NonNull String message, @NonNull @NonNull Map<String,String> failureMessages, @NonNull @NonNull com.broadleafcommerce.cart.client.domain.Cart cart)
  • 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

      public String getFailureType()
      The category of workflow failure that caused this exception.
      Returns:
      The category of workflow failure that caused this exception.
    • getFailureMessages

      public Map<String,String> 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

      public Map<String,Object> getAdditionalInfo()
      The map that can be used to specify the additional info for this exception.
      Returns:
      the map with additional info for this exception