Class CatalogBrowseExceptionAdvisor

java.lang.Object
com.broadleafcommerce.catalogbrowse.web.exception.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 Details

    • CatalogBrowseExceptionAdvisor

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

    • handleDataDrivenEnumDetailsRequestException

      @ExceptionHandler(DataDrivenEnumDetailsRequestException.class) public org.springframework.http.ResponseEntity<com.broadleafcommerce.common.error.ApiError> handleDataDrivenEnumDetailsRequestException(DataDrivenEnumDetailsRequestException ex, org.springframework.web.context.request.WebRequest request)
    • 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()