Interface ExceptionHandler<T>

  • Type Parameters:
    T - the transaction object type

    public interface ExceptionHandler<T>
    Generic exception handler to add custom behaviour on exception during transaction.
    • Method Detail

      • handleException

        boolean handleException​(Exception exception,
                                TransactionMetadata associatedTransactionMetadata,
                                T associatedTransaction)
        Called when an exception occurred during transaction.
        Parameters:
        exception - the exception that occurred.
        associatedTransactionMetadata - the associated transaction metadata.
        associatedTransaction - the associated transaction object.
        Returns:
        true if it handled the error and as such transaction should continue normally, false otherwise.