Class CatalogBrowseExceptionAdvisor


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

      • CatalogBrowseExceptionAdvisor

        public CatalogBrowseExceptionAdvisor​(com.fasterxml.jackson.databind.ObjectMapper mapper)
    • Method Detail

      • handleProviderApiError

        @ExceptionHandler(ProviderApiException.class)
        public org.springframework.http.ResponseEntity<com.broadleafcommerce.common.error.ApiError> handleProviderApiError​(ProviderApiException ex,
                                                                                                                           org.springframework.web.context.request.WebRequest request)
      • logError

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

        protected com.fasterxml.jackson.databind.ObjectMapper getMapper()