public Configuration setOnFailure(Consumer<List<Exception>> onFailure) {
            this.onFailure = onFailure;
            return this;
        }
Set a consumer that is called with a list of exceptions during a run. Will not be called with any exceptions that are not the configured
serialization failure. These will simply be thrown, aborting the operation. Can be used e.g. for logging.

@param onFailure A consumer to handle failures. Will never be called with Exceptions that have not been configured.
@return this
core/src/main/java/org/jdbi/v3/core/transaction/SerializableTransactionRunner.java