Class CustomerExceptionAdvisor
java.lang.Object
com.broadleafcommerce.customer.web.endpoint.exception.CustomerExceptionAdvisor
@RestControllerAdvice(annotations=org.springframework.web.bind.annotation.ResponseBody.class)
public class CustomerExceptionAdvisor
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>
handleInvalidContextRequestException
(InvalidRequestException ex, org.springframework.web.context.request.WebRequest request) org.springframework.http.ResponseEntity<com.broadleafcommerce.common.error.ApiError>
handleSegmentProcessingException
(SegmentProcessingException ex, org.springframework.web.context.request.WebRequest request) protected void
protected void
-
Constructor Details
-
CustomerExceptionAdvisor
public CustomerExceptionAdvisor()
-
-
Method Details
-
handleInvalidContextRequestException
@ExceptionHandler(InvalidRequestException.class) public org.springframework.http.ResponseEntity<com.broadleafcommerce.common.error.ApiError> handleInvalidContextRequestException(InvalidRequestException ex, org.springframework.web.context.request.WebRequest request) -
handleSegmentProcessingException
@ExceptionHandler(SegmentProcessingException.class) public org.springframework.http.ResponseEntity<com.broadleafcommerce.common.error.ApiError> handleSegmentProcessingException(SegmentProcessingException ex, org.springframework.web.context.request.WebRequest request) -
logDebug
-
logError
-