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
-
Method Summary
Modifier and TypeMethodDescriptionorg.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
-
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
-