@RestControllerAdvice(annotations=org.springframework.web.bind.annotation.ResponseBody.class) public class CartOperationExceptionAdvisor extends Object
Constructor and Description |
---|
CartOperationExceptionAdvisor(com.fasterxml.jackson.databind.ObjectMapper mapper) |
Modifier and Type | Method and Description |
---|---|
org.springframework.http.ResponseEntity<com.broadleafcommerce.common.error.ApiError> |
authenticationRequiredException(AuthenticationRequiredException ex,
org.springframework.web.context.request.WebRequest request) |
org.springframework.http.ResponseEntity<com.broadleafcommerce.common.error.ApiError> |
bulkAddToCartLimitExceededException(BulkAddToCartLimitExceededException ex,
org.springframework.web.context.request.WebRequest request) |
org.springframework.http.ResponseEntity<com.broadleafcommerce.common.error.ApiError> |
cartItemValidationException(CartItemValidationException ex,
org.springframework.web.context.request.WebRequest request) |
protected com.fasterxml.jackson.databind.ObjectMapper |
getMapper() |
org.springframework.http.ResponseEntity<com.broadleafcommerce.common.error.ApiError> |
handleAddCodeException(AddCodeException ex,
org.springframework.web.context.request.WebRequest request) |
org.springframework.http.ResponseEntity<com.broadleafcommerce.common.error.ApiError> |
handleAddPaymentException(AddPaymentException ex,
org.springframework.web.context.request.WebRequest request) |
org.springframework.http.ResponseEntity<com.broadleafcommerce.common.error.ApiError> |
handleCartNotFoundException(CartNotFoundException ex,
org.springframework.web.context.request.WebRequest request) |
org.springframework.http.ResponseEntity<com.broadleafcommerce.common.error.ApiError> |
handleCartValidationException(CartValidationException ex,
org.springframework.web.context.request.WebRequest request) |
org.springframework.http.ResponseEntity<com.broadleafcommerce.common.error.ApiError> |
handleCartVersionRequiredException(CartVersionRequiredException ex,
org.springframework.web.context.request.WebRequest request) |
org.springframework.http.ResponseEntity<com.broadleafcommerce.common.error.ApiError> |
handleGuestCartOnlyException(GuestCartOnlyException ex,
org.springframework.web.context.request.WebRequest request) |
org.springframework.http.ResponseEntity<com.broadleafcommerce.common.error.ApiError> |
handleGuestTokenDisabledException(GuestTokenDisabledException ex,
org.springframework.web.context.request.WebRequest request) |
org.springframework.http.ResponseEntity<com.broadleafcommerce.common.error.ApiError> |
handleGuestTokenRequiredException(GuestTokenRequiredException ex,
org.springframework.web.context.request.WebRequest request) |
org.springframework.http.ResponseEntity<com.broadleafcommerce.common.error.ApiError> |
handleGuestTokenValidationException(GuestTokenValidationException ex,
org.springframework.web.context.request.WebRequest request) |
org.springframework.http.ResponseEntity<com.broadleafcommerce.common.error.ApiError> |
handleInvalidAddPaymentRequestException(InvalidAddPaymentRequestException ex,
org.springframework.web.context.request.WebRequest request) |
org.springframework.http.ResponseEntity<com.broadleafcommerce.common.error.ApiError> |
handleInvalidUpdatePaymentRequestException(InvalidUpdatePaymentRequestException ex,
org.springframework.web.context.request.WebRequest request) |
org.springframework.http.ResponseEntity<com.broadleafcommerce.common.error.ApiError> |
handleProviderApiError(ProviderApiException ex,
org.springframework.web.context.request.WebRequest request) |
protected void |
logDebug(Exception ex,
org.springframework.web.context.request.WebRequest request) |
protected void |
logError(Exception ex,
org.springframework.web.context.request.WebRequest request) |
org.springframework.http.ResponseEntity<com.broadleafcommerce.common.error.ApiError> |
overridePriceException(OverridePriceException ex,
org.springframework.web.context.request.WebRequest request) |
org.springframework.http.ResponseEntity<com.broadleafcommerce.common.error.ApiError> |
rejectedItemMergeException(RejectedItemMergeException ex,
org.springframework.web.context.request.WebRequest request) |
org.springframework.http.ResponseEntity<com.broadleafcommerce.common.error.ApiError> |
staleCartException(StaleCartException ex,
org.springframework.web.context.request.WebRequest request) |
org.springframework.http.ResponseEntity<com.broadleafcommerce.common.error.ApiError> |
transferCartTokenParseException(TransferCartTokenParseException ex,
org.springframework.web.context.request.WebRequest request) |
public CartOperationExceptionAdvisor(com.fasterxml.jackson.databind.ObjectMapper mapper)
@ExceptionHandler public org.springframework.http.ResponseEntity<com.broadleafcommerce.common.error.ApiError> handleCartNotFoundException(CartNotFoundException ex, org.springframework.web.context.request.WebRequest request)
@ExceptionHandler public org.springframework.http.ResponseEntity<com.broadleafcommerce.common.error.ApiError> handleGuestCartOnlyException(GuestCartOnlyException ex, org.springframework.web.context.request.WebRequest request)
@ExceptionHandler public org.springframework.http.ResponseEntity<com.broadleafcommerce.common.error.ApiError> handleGuestTokenDisabledException(GuestTokenDisabledException ex, org.springframework.web.context.request.WebRequest request)
@ExceptionHandler public org.springframework.http.ResponseEntity<com.broadleafcommerce.common.error.ApiError> handleGuestTokenRequiredException(GuestTokenRequiredException ex, org.springframework.web.context.request.WebRequest request)
@ExceptionHandler public org.springframework.http.ResponseEntity<com.broadleafcommerce.common.error.ApiError> handleGuestTokenValidationException(GuestTokenValidationException ex, org.springframework.web.context.request.WebRequest request)
@ExceptionHandler public org.springframework.http.ResponseEntity<com.broadleafcommerce.common.error.ApiError> handleAddCodeException(AddCodeException ex, org.springframework.web.context.request.WebRequest request)
@ExceptionHandler public org.springframework.http.ResponseEntity<com.broadleafcommerce.common.error.ApiError> handleAddPaymentException(AddPaymentException ex, org.springframework.web.context.request.WebRequest request)
@ExceptionHandler public org.springframework.http.ResponseEntity<com.broadleafcommerce.common.error.ApiError> handleInvalidAddPaymentRequestException(InvalidAddPaymentRequestException ex, org.springframework.web.context.request.WebRequest request)
@ExceptionHandler public org.springframework.http.ResponseEntity<com.broadleafcommerce.common.error.ApiError> handleInvalidUpdatePaymentRequestException(InvalidUpdatePaymentRequestException ex, org.springframework.web.context.request.WebRequest request)
@ExceptionHandler public org.springframework.http.ResponseEntity<com.broadleafcommerce.common.error.ApiError> handleCartValidationException(CartValidationException ex, org.springframework.web.context.request.WebRequest request)
@ExceptionHandler public org.springframework.http.ResponseEntity<com.broadleafcommerce.common.error.ApiError> handleCartVersionRequiredException(CartVersionRequiredException ex, org.springframework.web.context.request.WebRequest request)
@ExceptionHandler public org.springframework.http.ResponseEntity<com.broadleafcommerce.common.error.ApiError> overridePriceException(OverridePriceException ex, org.springframework.web.context.request.WebRequest request)
@ExceptionHandler public org.springframework.http.ResponseEntity<com.broadleafcommerce.common.error.ApiError> cartItemValidationException(CartItemValidationException ex, org.springframework.web.context.request.WebRequest request)
@ExceptionHandler public org.springframework.http.ResponseEntity<com.broadleafcommerce.common.error.ApiError> handleProviderApiError(ProviderApiException ex, org.springframework.web.context.request.WebRequest request)
@ExceptionHandler public org.springframework.http.ResponseEntity<com.broadleafcommerce.common.error.ApiError> staleCartException(StaleCartException ex, org.springframework.web.context.request.WebRequest request)
@ExceptionHandler public org.springframework.http.ResponseEntity<com.broadleafcommerce.common.error.ApiError> transferCartTokenParseException(TransferCartTokenParseException ex, org.springframework.web.context.request.WebRequest request)
@ExceptionHandler public org.springframework.http.ResponseEntity<com.broadleafcommerce.common.error.ApiError> authenticationRequiredException(AuthenticationRequiredException ex, org.springframework.web.context.request.WebRequest request)
@ExceptionHandler public org.springframework.http.ResponseEntity<com.broadleafcommerce.common.error.ApiError> bulkAddToCartLimitExceededException(BulkAddToCartLimitExceededException ex, org.springframework.web.context.request.WebRequest request)
@ExceptionHandler public org.springframework.http.ResponseEntity<com.broadleafcommerce.common.error.ApiError> rejectedItemMergeException(RejectedItemMergeException ex, org.springframework.web.context.request.WebRequest request)
protected void logDebug(Exception ex, org.springframework.web.context.request.WebRequest request)
protected void logError(Exception ex, org.springframework.web.context.request.WebRequest request)
protected com.fasterxml.jackson.databind.ObjectMapper getMapper()
Copyright © 2021. All rights reserved.