public class TxnError extends Object
Constructor and Description |
---|
TxnError()
Default constructor
|
TxnError(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.
|
JsonObject |
toJson()
Convert to JSON
|
public TxnError()
public TxnError(JsonObject json)
json
- the JSONpublic 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.