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 theCartApprovalValidationService- Author:
- Susana Cruz (susanaccruz)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CartApprovalValidationException(@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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>getAdditionalInfo()The map that can be used to specify the additional info for this exception.com.broadleafcommerce.cart.client.domain.CartgetCart()The cart whose approval has failed.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).StringgetFailureType()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
-
-
-
-
Method Detail
-
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.
-
-