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 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

      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)