Class CartApprovalValidationApiError
java.lang.Object
com.broadleafcommerce.common.error.ApiError
com.broadleafcommerce.cartoperation.web.endpoint.exception.CartApprovalValidationApiError
public final class CartApprovalValidationApiError
extends com.broadleafcommerce.common.error.ApiError
- Author:
- Nathan Moore (nathandmoore)
-
Nested Class Summary
Nested classes/interfaces inherited from class com.broadleafcommerce.common.error.ApiError
com.broadleafcommerce.common.error.ApiError.StatusConverter
-
Constructor Summary
ConstructorDescriptionCartApprovalValidationApiError
(String type, String title, String exception, OffsetDateTime timestamp, org.springframework.http.HttpStatus status, int statusCode, List<com.broadleafcommerce.common.error.GlobalError> globalErrors, com.broadleafcommerce.cart.client.domain.Cart cart, String failureType, Map<String, String> failureMessages, Map<String, Object> additionalInfo) CartApprovalValidationApiError
(String type, String title, String exception, OffsetDateTime timestamp, org.springframework.http.HttpStatus status, int statusCode, List<com.broadleafcommerce.common.error.GlobalError> globalErrors, CartApprovalValidationException e) CartApprovalValidationApiError
(String type, String title, org.springframework.http.HttpStatus status, com.broadleafcommerce.cart.client.domain.Cart cart, String failureType, Map<String, String> failureMessages, Map<String, Object> additionalInfo) CartApprovalValidationApiError
(String type, String title, org.springframework.http.HttpStatus status, CartApprovalValidationException e) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
The 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.int
hashCode()
toString()
Methods inherited from class com.broadleafcommerce.common.error.ApiError
addError, getException, getGlobalErrors, getStatus, getStatusCode, getTimestamp, getTitle, getType, setException, setTimestamp, toResponseEntity, withException, withGlobalErrors, withStatus, withStatusCode, withTimestamp, withTitle, withType
-
Constructor Details
-
CartApprovalValidationApiError
-
CartApprovalValidationApiError
public CartApprovalValidationApiError(String type, String title, org.springframework.http.HttpStatus status, CartApprovalValidationException e) -
CartApprovalValidationApiError
public CartApprovalValidationApiError(String type, String title, String exception, OffsetDateTime timestamp, org.springframework.http.HttpStatus status, int statusCode, List<com.broadleafcommerce.common.error.GlobalError> globalErrors, com.broadleafcommerce.cart.client.domain.Cart cart, String failureType, Map<String, String> failureMessages, Map<String, Object> additionalInfo) -
CartApprovalValidationApiError
public CartApprovalValidationApiError(String type, String title, String exception, OffsetDateTime timestamp, org.springframework.http.HttpStatus status, int statusCode, List<com.broadleafcommerce.common.error.GlobalError> globalErrors, CartApprovalValidationException e)
-
-
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
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
- Overrides:
toString
in classcom.broadleafcommerce.common.error.ApiError
-