Class ExceptionHandlerRegistry
java.lang.Object
com.broadleafcommerce.vendor.web.endpoint.exception.ExceptionHandlerRegistry
@RestControllerAdvice(annotations=org.springframework.web.bind.annotation.ResponseBody.class)
public class ExceptionHandlerRegistry
extends Object
General exception handler registry for handlers not exclusive to a single controller.
- Author:
- Jon Fleschler (jfleschler)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<com.broadleafcommerce.common.error.ApiError>
handleEntityMissingException
(Exception ex, org.springframework.web.context.request.WebRequest request)
-
Constructor Details
-
ExceptionHandlerRegistry
public ExceptionHandlerRegistry()
-
-
Method Details
-
handleEntityMissingException
@ExceptionHandler(com.broadleafcommerce.data.tracking.core.exception.EntityMissingException.class) public org.springframework.http.ResponseEntity<com.broadleafcommerce.common.error.ApiError> handleEntityMissingException(Exception ex, org.springframework.web.context.request.WebRequest request)
-