Class CatalogExceptionAdvisor

java.lang.Object
com.broadleafcommerce.catalog.web.endpoint.exception.CatalogExceptionAdvisor

@RestControllerAdvice(annotations=org.springframework.web.bind.annotation.ResponseBody.class) public class CatalogExceptionAdvisor extends Object
General exception handler registry for handlers not exclusive to a single controller.
Author:
Samarth Dhruva (samarthd)
  • Constructor Details

    • CatalogExceptionAdvisor

      public CatalogExceptionAdvisor()
  • Method Details

    • handleProductDetailsRequestException

      @ExceptionHandler(ProductDetailsRequestException.class) public org.springframework.http.ResponseEntity<com.broadleafcommerce.common.error.ApiError> handleProductDetailsRequestException(ProductDetailsRequestException ex, org.springframework.web.context.request.WebRequest request)
    • handleCategoryDetailsRequestException

      @ExceptionHandler(CategoryDetailsRequestException.class) public org.springframework.http.ResponseEntity<com.broadleafcommerce.common.error.ApiError> handleCategoryDetailsRequestException(CategoryDetailsRequestException ex, org.springframework.web.context.request.WebRequest request)
    • handleDataDrivenEnumDetailsRequestException

      @ExceptionHandler(DataDrivenEnumDetailsRequestException.class) public org.springframework.http.ResponseEntity<com.broadleafcommerce.common.error.ApiError> handleDataDrivenEnumDetailsRequestException(DataDrivenEnumDetailsRequestException ex, org.springframework.web.context.request.WebRequest request)
    • handleInvalidCategoryDeleteException

      @ExceptionHandler(InvalidCategoryDeleteException.class) public org.springframework.http.ResponseEntity<com.broadleafcommerce.common.error.ApiError> handleInvalidCategoryDeleteException(InvalidCategoryDeleteException ex, org.springframework.web.context.request.WebRequest request)
    • handleBusinessTypeInUseException

      @ExceptionHandler(BusinessTypeInUseException.class) public org.springframework.http.ResponseEntity<com.broadleafcommerce.common.error.ApiError> handleBusinessTypeInUseException(BusinessTypeInUseException e, org.springframework.web.context.request.WebRequest request)
    • logDebug

      @Deprecated(forRemoval=true) protected void logDebug(Exception ex, org.springframework.web.context.request.WebRequest request)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Deprecated in favor of central logging managed by ExceptionHandlerUtils.
    • getExceptionHandlerUtils

      protected com.broadleafcommerce.common.error.validation.web.ExceptionHandlerUtils getExceptionHandlerUtils()
    • setExceptionHandlerUtils

      @Autowired public void setExceptionHandlerUtils(com.broadleafcommerce.common.error.validation.web.ExceptionHandlerUtils exceptionHandlerUtils)