public void attachToThrowable(Throwable throwable) {
        for (Throwable t : throwables) {
            throwable.addSuppressed(t);
        }
        throwables.clear();
    }
Attach all recorded exceptions to another throwable as suppressed exceptions.

@param throwable The throwable to attach to.
core/src/main/java/org/jdbi/v3/core/internal/exceptions/ThrowableSuppressor.java