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 Summary
Constructors Constructor Description CatalogBrowseExceptionAdvisor(com.fasterxml.jackson.databind.ObjectMapper mapper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected com.fasterxml.jackson.databind.ObjectMappergetMapper()org.springframework.http.ResponseEntity<com.broadleafcommerce.common.error.ApiError>handleDataDrivenEnumDetailsRequestException(DataDrivenEnumDetailsRequestException 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 voidlogError(Exception ex, org.springframework.web.context.request.WebRequest request)
-
-
-
Method Detail
-
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()
-
-