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

      • ShipEngineExceptionAdvisor

        public ShipEngineExceptionAdvisor()
    • Method Detail

      • 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

        protected void logError​(Throwable ex,
                                org.springframework.web.context.request.WebRequest request)