Class CartExceptionAdvisor


  • @RestControllerAdvice(annotations=org.springframework.web.bind.annotation.ResponseBody.class)
    public class CartExceptionAdvisor
    extends Object
    General exception handler registry for handlers not exclusive to a single controller.
    Author:
    Chad Harchar (charchar)
    • Constructor Detail

      • CartExceptionAdvisor

        public CartExceptionAdvisor​(CartService<com.broadleafcommerce.cart.client.domain.Cart> cartService)
    • Method Detail

      • handleOptimisticLockingFailureException

        @ExceptionHandler(org.springframework.dao.OptimisticLockingFailureException.class)
        public org.springframework.http.ResponseEntity<com.broadleafcommerce.common.error.ApiError> handleOptimisticLockingFailureException​(Exception ex,
                                                                                                                                            org.springframework.web.context.request.WebRequest request)
      • logDebug

        protected void logDebug​(Exception ex,
                                org.springframework.web.context.request.WebRequest request)
      • getCartService

        protected CartService<com.broadleafcommerce.cart.client.domain.Cart> getCartService()