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 ShipEngineExceptionAdvisor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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)
-
-
-
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)
-
-