Class PaymentTransactionExceptionAdvisor

java.lang.Object
com.broadleafcommerce.paymenttransaction.web.endpoint.exception.PaymentTransactionExceptionAdvisor

@RestControllerAdvice(annotations=org.springframework.web.bind.annotation.ResponseBody.class) public class PaymentTransactionExceptionAdvisor extends Object
General exception handler registry for handlers not exclusive to a single controller.
Author:
Marie Standeven (marieStandeven)
  • Constructor Details

    • PaymentTransactionExceptionAdvisor

      public PaymentTransactionExceptionAdvisor()
  • Method Details

    • handleInvalidTransactionExecutionRequestException

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

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

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

      @ExceptionHandler public org.springframework.http.ResponseEntity<com.broadleafcommerce.common.error.ApiError> handleOptimisticLockingFailureException(org.springframework.dao.OptimisticLockingFailureException ex, org.springframework.web.context.request.WebRequest request)
    • handleInvalidCreatePaymentRequestException

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

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

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

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

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

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

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

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

      @ExceptionHandler(com.broadleafcommerce.common.messaging.exception.ResourceLockException.class) @ResponseStatus(LOCKED) public void handleResourceLockException(com.broadleafcommerce.common.messaging.exception.ResourceLockException lockException, org.springframework.web.context.request.WebRequest request)
    • handleExchangeSingleUseTokenException

      @ExceptionHandler(com.broadleafcommerce.paymentgateway.service.exception.ExchangeSingleUseTokenException.class) public org.springframework.http.ResponseEntity<com.broadleafcommerce.common.error.ApiError> handleExchangeSingleUseTokenException(com.broadleafcommerce.paymentgateway.service.exception.ExchangeSingleUseTokenException ex, org.springframework.web.context.request.WebRequest request)
    • handlePaymentMethodPropertiesModificationException

      @ExceptionHandler(com.broadleafcommerce.paymentgateway.service.exception.PaymentMethodPropertiesModificationException.class) public org.springframework.http.ResponseEntity<com.broadleafcommerce.common.error.ApiError> handlePaymentMethodPropertiesModificationException(com.broadleafcommerce.paymentgateway.service.exception.PaymentMethodPropertiesModificationException ex, org.springframework.web.context.request.WebRequest request)
    • handleUnsupportedOperationException

      @ExceptionHandler(java.lang.UnsupportedOperationException.class) public org.springframework.http.ResponseEntity<com.broadleafcommerce.common.error.ApiError> handleUnsupportedOperationException(UnsupportedOperationException ex, org.springframework.web.context.request.WebRequest request)
    • handleInvalidFetchPaymentDetailsParamsException

      @ExceptionHandler(com.broadleafcommerce.paymentgateway.service.exception.InvalidFetchPaymentDetailsParamsException.class) public org.springframework.http.ResponseEntity<com.broadleafcommerce.common.error.ApiError> handleInvalidFetchPaymentDetailsParamsException(com.broadleafcommerce.paymentgateway.service.exception.InvalidFetchPaymentDetailsParamsException ex, org.springframework.web.context.request.WebRequest request)
    • handleTransactionNotFoundException

      @ExceptionHandler(com.broadleafcommerce.paymentgateway.service.exception.TransactionNotFoundException.class) public org.springframework.http.ResponseEntity<com.broadleafcommerce.common.error.ApiError> handleTransactionNotFoundException(com.broadleafcommerce.paymentgateway.service.exception.TransactionNotFoundException ex, org.springframework.web.context.request.WebRequest request)
    • handleTransactionResultsNotAvailableException

      @ExceptionHandler(com.broadleafcommerce.paymentgateway.service.exception.TransactionResultsNotAvailableException.class) public org.springframework.http.ResponseEntity<com.broadleafcommerce.common.error.ApiError> handleTransactionResultsNotAvailableException(com.broadleafcommerce.paymentgateway.service.exception.TransactionResultsNotAvailableException ex, org.springframework.web.context.request.WebRequest request)
    • handleFetchPaymentDetailsException

      @ExceptionHandler(com.broadleafcommerce.paymentgateway.service.exception.FetchTransactionResultsException.class) public org.springframework.http.ResponseEntity<com.broadleafcommerce.common.error.ApiError> handleFetchPaymentDetailsException(com.broadleafcommerce.paymentgateway.service.exception.FetchTransactionResultsException ex, org.springframework.web.context.request.WebRequest request)
    • handleTransactionIdentificationException

      @ExceptionHandler(TransactionIdentificationException.class) public org.springframework.http.ResponseEntity<com.broadleafcommerce.common.error.ApiError> handleTransactionIdentificationException(TransactionIdentificationException ex, org.springframework.web.context.request.WebRequest request)
    • handleThreeDSTransactionRecordingException

      @ExceptionHandler(ThreeDSTransactionRecordingException.class) public org.springframework.http.ResponseEntity<com.broadleafcommerce.common.error.ApiError> handleThreeDSTransactionRecordingException(ThreeDSTransactionRecordingException ex, org.springframework.web.context.request.WebRequest request)
    • handleExchangeWalletTokenException

      @ExceptionHandler(com.broadleafcommerce.paymentgateway.service.exception.ExchangeWalletTokenException.class) public org.springframework.http.ResponseEntity<com.broadleafcommerce.common.error.ApiError> handleExchangeWalletTokenException(com.broadleafcommerce.paymentgateway.service.exception.ExchangeWalletTokenException ex, org.springframework.web.context.request.WebRequest request)
    • logDebug

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

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

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

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