Class SubscriptionOperationExceptionAdvisor
java.lang.Object
com.broadleafcommerce.subscriptionoperation.web.endpoint.exception.SubscriptionOperationExceptionAdvisor
@RestControllerAdvice(annotations=org.springframework.web.bind.annotation.ResponseBody.class)
public class SubscriptionOperationExceptionAdvisor
extends Object
General exception handler registry for handlers not exclusive to a single controller.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected com.broadleafcommerce.common.error.validation.web.ExceptionHandlerUtilsprotected com.fasterxml.jackson.databind.ObjectMapperorg.springframework.http.ResponseEntity<com.broadleafcommerce.common.error.ApiError>handleIllegalResponseException(IllegalResponseException ex, org.springframework.web.context.request.WebRequest request) org.springframework.http.ResponseEntity<com.broadleafcommerce.common.error.ApiError>handleIllegalSubscriptionPricingStateException(IllegalSubscriptionPricingStateException ex, org.springframework.web.context.request.WebRequest request) org.springframework.http.ResponseEntity<com.broadleafcommerce.common.error.ApiError>handleInvalidSubscriptionAccessException(InsufficientSubscriptionAccessException ex, org.springframework.web.context.request.WebRequest request) org.springframework.http.ResponseEntity<com.broadleafcommerce.common.error.ApiError>handleInvalidSubscriptionCreationRequestException(InvalidSubscriptionCreationRequestException ex, org.springframework.web.context.request.WebRequest request) org.springframework.http.ResponseEntity<com.broadleafcommerce.common.error.ApiError>handleProviderApiError(ProviderApiException ex, org.springframework.web.context.request.WebRequest request) org.springframework.http.ResponseEntity<com.broadleafcommerce.common.error.ApiError>handleSubscriptionLockException(SubscriptionLockException ex, org.springframework.web.context.request.WebRequest request) org.springframework.http.ResponseEntity<com.broadleafcommerce.common.error.ApiError>handleUnsupportedSubscriptionModificationRequestException(UnsupportedSubscriptionModificationRequestException ex, org.springframework.web.context.request.WebRequest request) protected voidDeprecated, for removal: This API element is subject to removal in a future version.protected voidDeprecated, for removal: This API element is subject to removal in a future version.Deprecated in favor of central logging managed byExceptionHandlerUtils.voidsetExceptionHandlerUtils(com.broadleafcommerce.common.error.validation.web.ExceptionHandlerUtils exceptionHandlerUtils) voidsetMapper(com.fasterxml.jackson.databind.ObjectMapper mapper)
-
Constructor Details
-
SubscriptionOperationExceptionAdvisor
public SubscriptionOperationExceptionAdvisor()
-
-
Method Details
-
handleInvalidSubscriptionCreationRequestException
@ExceptionHandler public org.springframework.http.ResponseEntity<com.broadleafcommerce.common.error.ApiError> handleInvalidSubscriptionCreationRequestException(InvalidSubscriptionCreationRequestException ex, org.springframework.web.context.request.WebRequest request) -
handleInvalidSubscriptionAccessException
@ExceptionHandler public org.springframework.http.ResponseEntity<com.broadleafcommerce.common.error.ApiError> handleInvalidSubscriptionAccessException(InsufficientSubscriptionAccessException ex, org.springframework.web.context.request.WebRequest request) -
handleProviderApiError
@ExceptionHandler(ProviderApiException.class) public org.springframework.http.ResponseEntity<com.broadleafcommerce.common.error.ApiError> handleProviderApiError(ProviderApiException ex, org.springframework.web.context.request.WebRequest request) -
handleUnsupportedSubscriptionModificationRequestException
@ExceptionHandler(UnsupportedSubscriptionModificationRequestException.class) public org.springframework.http.ResponseEntity<com.broadleafcommerce.common.error.ApiError> handleUnsupportedSubscriptionModificationRequestException(UnsupportedSubscriptionModificationRequestException ex, org.springframework.web.context.request.WebRequest request) -
handleIllegalResponseException
@ExceptionHandler(IllegalResponseException.class) public org.springframework.http.ResponseEntity<com.broadleafcommerce.common.error.ApiError> handleIllegalResponseException(IllegalResponseException ex, org.springframework.web.context.request.WebRequest request) -
handleSubscriptionLockException
@ExceptionHandler(SubscriptionLockException.class) public org.springframework.http.ResponseEntity<com.broadleafcommerce.common.error.ApiError> handleSubscriptionLockException(SubscriptionLockException ex, org.springframework.web.context.request.WebRequest request) -
handleIllegalSubscriptionPricingStateException
@ExceptionHandler(IllegalSubscriptionPricingStateException.class) public org.springframework.http.ResponseEntity<com.broadleafcommerce.common.error.ApiError> handleIllegalSubscriptionPricingStateException(IllegalSubscriptionPricingStateException ex, org.springframework.web.context.request.WebRequest request) -
logDebug
@Deprecated(forRemoval=true) protected void logDebug(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 byExceptionHandlerUtils. -
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 byExceptionHandlerUtils. -
getMapper
protected com.fasterxml.jackson.databind.ObjectMapper getMapper() -
setMapper
@Autowired public void setMapper(com.fasterxml.jackson.databind.ObjectMapper mapper) -
getExceptionHandlerUtils
protected com.broadleafcommerce.common.error.validation.web.ExceptionHandlerUtils getExceptionHandlerUtils() -
setExceptionHandlerUtils
@Autowired public void setExceptionHandlerUtils(com.broadleafcommerce.common.error.validation.web.ExceptionHandlerUtils exceptionHandlerUtils)
-
ExceptionHandlerUtils.