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
Constructors Constructor Description CustomerExceptionAdvisor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.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
logDebug(Exception ex, org.springframework.web.context.request.WebRequest request)
protected void
logError(Exception ex, org.springframework.web.context.request.WebRequest request)
-
-
-
Method Detail
-
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
protected void logDebug(Exception ex, org.springframework.web.context.request.WebRequest request)
-
logError
protected void logError(Exception ex, org.springframework.web.context.request.WebRequest request)
-
-