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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<com.broadleafcommerce.common.error.ApiError>
handleCategoryDetailsRequestException
(CategoryDetailsRequestException ex, org.springframework.web.context.request.WebRequest request) 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>
handleInvalidCategoryDeleteException
(InvalidCategoryDeleteException ex, org.springframework.web.context.request.WebRequest request) org.springframework.http.ResponseEntity<com.broadleafcommerce.common.error.ApiError>
handleProductDetailsRequestException
(ProductDetailsRequestException ex, org.springframework.web.context.request.WebRequest request) protected void
-
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) -
logDebug
-