Class OrderOperationExceptionAdvisor

java.lang.Object
com.broadleafcommerce.orderoperation.web.endpoint.exception.OrderOperationExceptionAdvisor

@RestControllerAdvice(annotations=org.springframework.web.bind.annotation.ResponseBody.class) public class OrderOperationExceptionAdvisor extends Object
Exception advisor for handling exceptions thrown by order operation endpoints.
Since:
Order Operation Service 2.2.0, Release Train 2.3.0
  • Constructor Summary

    Constructors
    Constructor
    Description
    OrderOperationExceptionAdvisor(com.fasterxml.jackson.databind.ObjectMapper mapper)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected com.broadleafcommerce.common.error.validation.web.ExceptionHandlerUtils
     
    protected com.fasterxml.jackson.databind.ObjectMapper
     
    org.springframework.http.ResponseEntity<com.broadleafcommerce.common.error.ApiError>
    handleProviderApiError(ProviderApiException ex, org.springframework.web.context.request.WebRequest request)
     
    protected void
    logError(Exception ex, org.springframework.web.context.request.WebRequest request)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Deprecated in favor of central logging managed by ExceptionHandlerUtils.
    void
    setExceptionHandlerUtils(com.broadleafcommerce.common.error.validation.web.ExceptionHandlerUtils exceptionHandlerUtils)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • OrderOperationExceptionAdvisor

      public OrderOperationExceptionAdvisor(com.fasterxml.jackson.databind.ObjectMapper mapper)
  • Method Details

    • handleProviderApiError

      @ExceptionHandler public org.springframework.http.ResponseEntity<com.broadleafcommerce.common.error.ApiError> handleProviderApiError(ProviderApiException ex, org.springframework.web.context.request.WebRequest request)
    • logError

      @Deprecated(forRemoval=true) protected void logError(Exception ex, org.springframework.web.context.request.WebRequest request)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Deprecated in favor of central logging managed by ExceptionHandlerUtils.
    • getMapper

      protected com.fasterxml.jackson.databind.ObjectMapper getMapper()
    • getExceptionHandlerUtils

      protected com.broadleafcommerce.common.error.validation.web.ExceptionHandlerUtils getExceptionHandlerUtils()
    • setExceptionHandlerUtils

      @Autowired public void setExceptionHandlerUtils(com.broadleafcommerce.common.error.validation.web.ExceptionHandlerUtils exceptionHandlerUtils)