public Configuration setMaxRetries(int maxRetries) {
            if (maxRetries < 0) {
                throw new IllegalArgumentException("\"" + maxRetries + " retries\" makes no sense. Set a number >= 0 (default " + DEFAULT_MAX_RETRIES + ").");
            }

            this.maxRetries = maxRetries;
            return this;
        }
Sets the maximum number of retry attempts before aborting.

@param maxRetries The maximum number of retry attempts before aborting.
@return this
core/src/main/java/org/jdbi/v3/core/transaction/SerializableTransactionRunner.java