docs: public static TransactionException transactionClosed(@Nullable TransactionOLTP tx, @Nullable String reason) {
          if (reason == null) {
              Preconditions.checkNotNull(tx);
              return create(ErrorMessage.TX_CLOSED.getMessage(tx.keyspace()));
          } else {
              return create(reason);
          }
      }