vertx / io.vertx.kotlin.ext.consul / txnErrorOf

# txnErrorOf

`fun txnErrorOf(opIndex: Int? = null, what: String? = null): TxnError`

A function providing a DSL for building io.vertx.ext.consul.TxnError objects.

Holds information describing which operations failed if the transaction was rolled back.

### Parameters

`opIndex` - Set the index of the failed operation in the transaction

`what` - Set error message about why that operation failed.