Class RecommendationExceptionAdvisor
java.lang.Object
com.broadleafcommerce.recommendationengine.web.endpoint.exception.RecommendationExceptionAdvisor
@RestControllerAdvice(annotations=org.springframework.web.bind.annotation.ResponseBody.class)
public class RecommendationExceptionAdvisor
extends Object
General exception handler registry for handlers not exclusive to a single controller.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<com.broadleafcommerce.common.error.ApiError>
handleInvalidRecommendationException
(Exception ex, org.springframework.web.context.request.WebRequest request) protected void
-
Constructor Details
-
RecommendationExceptionAdvisor
public RecommendationExceptionAdvisor()
-
-
Method Details
-
handleInvalidRecommendationException
@ExceptionHandler(InvalidRecommendationException.class) public org.springframework.http.ResponseEntity<com.broadleafcommerce.common.error.ApiError> handleInvalidRecommendationException(Exception ex, org.springframework.web.context.request.WebRequest request) -
logDebug
-