Class ShipEngineExceptionAdvisor

java.lang.Object
com.broadleafcommerce.shipping.web.endpoint.ShipEngineExceptionAdvisor

@RestControllerAdvice(annotations=org.springframework.web.bind.annotation.ResponseBody.class) public class ShipEngineExceptionAdvisor extends Object
Exception handlers for the ShipEngine integration
Author:
Cade Rea (cade-rea)
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected com.broadleafcommerce.common.error.validation.web.ExceptionHandlerUtils
     
    org.springframework.http.ResponseEntity<com.broadleafcommerce.common.error.ApiError>
    handleShipEngineApiException(ShipEngineApiException ex, org.springframework.web.context.request.WebRequest request)
     
    org.springframework.http.ResponseEntity<com.broadleafcommerce.common.error.ApiError>
    handleShipEngineApiException(org.springframework.core.codec.DecodingException ex, org.springframework.web.context.request.WebRequest request)
     
    protected void
    logError(Throwable 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

    • ShipEngineExceptionAdvisor

      public ShipEngineExceptionAdvisor()
  • Method Details

    • handleShipEngineApiException

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

      @ExceptionHandler(org.springframework.core.codec.DecodingException.class) public org.springframework.http.ResponseEntity<com.broadleafcommerce.common.error.ApiError> handleShipEngineApiException(org.springframework.core.codec.DecodingException ex, org.springframework.web.context.request.WebRequest request)
    • logError

      @Deprecated(forRemoval=true) protected void logError(Throwable 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.
    • getExceptionHandlerUtils

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

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