Class CreateConsentOrPaymentPossibleErrorHandler


  • @Service
    public class CreateConsentOrPaymentPossibleErrorHandler
    extends Object
    Special service to parse ASPSP consent create/initiate responses on certain error conditions. For example used to catch exception on wrong IBAN input and if it is retryable to swallow the exception and call fallback routine.
    • Constructor Detail

      • CreateConsentOrPaymentPossibleErrorHandler

        public CreateConsentOrPaymentPossibleErrorHandler()
    • Method Detail

      • tryCreateAndHandleErrors

        public void tryCreateAndHandleErrors​(org.flowable.engine.delegate.DelegateExecution execution,
                                             Runnable tryCreate)
        Swallows retryable (like wrong IBAN) consent initiation exceptions.
        Parameters:
        tryCreate - Consent/payment creation function to call