Class SubscriptionExceptionAdvisor

java.lang.Object
com.broadleafcommerce.subscription.web.endpoint.exception.SubscriptionExceptionAdvisor

@RestControllerAdvice(annotations=org.springframework.web.bind.annotation.ResponseBody.class) public class SubscriptionExceptionAdvisor extends Object
General exception handler registry for handlers not exclusive to a single controller.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected com.broadleafcommerce.common.error.validation.web.ExceptionHandlerUtils
     
    protected com.fasterxml.jackson.databind.ObjectMapper
     
    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>
    handleProviderApiException(ProviderApiException ex, org.springframework.web.context.request.WebRequest request)
     
    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 by ExceptionHandlerUtils.
    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 by ExceptionHandlerUtils.
    protected void
    logInfo(Exception ex, org.springframework.web.context.request.WebRequest request)
     
    protected void
    logWarn(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 by ExceptionHandlerUtils.
    void
    setExceptionHandlerUtils(com.broadleafcommerce.common.error.validation.web.ExceptionHandlerUtils exceptionHandlerUtils)
     
    void
    setMapper(com.fasterxml.jackson.databind.ObjectMapper mapper)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SubscriptionExceptionAdvisor

      public SubscriptionExceptionAdvisor()
  • Method Details

    • handleInvalidSubscriptionCreationRequestException

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

      @ExceptionHandler(ProviderApiException.class) public org.springframework.http.ResponseEntity<com.broadleafcommerce.common.error.ApiError> handleProviderApiException(ProviderApiException 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 by ExceptionHandlerUtils.
    • logInfo

      protected void logInfo(Exception ex, org.springframework.web.context.request.WebRequest request)
    • logWarn

      @Deprecated(forRemoval=true) protected void logWarn(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 by ExceptionHandlerUtils.
    • 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 by ExceptionHandlerUtils.
    • 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)