Class InventoryExceptionAdvisor
- java.lang.Object
-
- com.broadleafcommerce.inventory.web.exception.InventoryExceptionAdvisor
-
@RestControllerAdvice(annotations=org.springframework.web.bind.annotation.ResponseBody.class) public class InventoryExceptionAdvisor extends Object
General exception handler registry for handlers not exclusive to a single controller.- Author:
- Kelly Tisdell (ktisdell)
-
-
Constructor Summary
Constructors Constructor Description InventoryExceptionAdvisor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.http.ResponseEntity<com.broadleafcommerce.common.error.ApiError>
handleInventoryUnavailable(Exception ex, org.springframework.web.context.request.WebRequest request)
protected void
logDebug(Exception ex, org.springframework.web.context.request.WebRequest request)
-
-
-
Method Detail
-
handleInventoryUnavailable
@ExceptionHandler(InventoryUnavailableException.class) public org.springframework.http.ResponseEntity<com.broadleafcommerce.common.error.ApiError> handleInventoryUnavailable(Exception ex, org.springframework.web.context.request.WebRequest request)
-
logDebug
protected void logDebug(Exception ex, org.springframework.web.context.request.WebRequest request)
-
-