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
ConstructorsConstructorDescriptionCatalogBrowseExceptionAdvisor(com.fasterxml.jackson.databind.ObjectMapper mapper) -
Method Summary
Modifier and TypeMethodDescriptionprotected com.fasterxml.jackson.databind.ObjectMapperorg.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 void
-
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
-
getMapper
protected com.fasterxml.jackson.databind.ObjectMapper getMapper()
-