Class InvalidRelatedProductExceptionAdvisor
java.lang.Object
com.broadleafcommerce.catalog.web.endpoint.exception.InvalidRelatedProductExceptionAdvisor
@RestControllerAdvice(assignableTypes={CategoryEndpoint.class,ProductEndpoint.class})
public class InvalidRelatedProductExceptionAdvisor
extends Object
Exception handler for
InvalidRelatedProductException
.- Author:
- Samarth Dhruva (samarthd)
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<com.broadleafcommerce.common.error.ApiError>
handleInvalidRelatedProductException
(Exception ex, org.springframework.web.context.request.WebRequest request) protected void
-
Constructor Details
-
InvalidRelatedProductExceptionAdvisor
public InvalidRelatedProductExceptionAdvisor()
-
-
Method Details
-
handleInvalidRelatedProductException
@ExceptionHandler(InvalidRelatedProductException.class) public org.springframework.http.ResponseEntity<com.broadleafcommerce.common.error.ApiError> handleInvalidRelatedProductException(Exception ex, org.springframework.web.context.request.WebRequest request) -
logDebug
-