public class TxnError extends Object
| Constructor and Description |
|---|
TxnError()
Default constructor
|
TxnError(io.vertx.core.json.JsonObject json)
Constructor from JSON
|
| Modifier and Type | Method and Description |
|---|---|
int |
getOpIndex()
Get the index of the failed operation in the transaction
|
String |
getWhat()
Get error message about why that operation failed.
|
TxnError |
setOpIndex(int opIndex)
Set the index of the failed operation in the transaction
|
TxnError |
setWhat(String what)
Set error message about why that operation failed.
|
io.vertx.core.json.JsonObject |
toJson()
Convert to JSON
|
public TxnError()
public TxnError(io.vertx.core.json.JsonObject json)
json - the JSONpublic io.vertx.core.json.JsonObject toJson()
public int getOpIndex()
public String getWhat()
public TxnError setOpIndex(int opIndex)
opIndex - the index of the failed operation in the transactionCopyright © 2024 Eclipse. All rights reserved.