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)
  • Constructor Details

    • CartApprovalValidationApiError

      public 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

      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

      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
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class com.broadleafcommerce.common.error.ApiError