|
zookeeper-cpp
ZooKeeper Client for C++
|
Thrown from client::commit when a transaction cannot be committed to the system.
More...
#include <zk/error.hpp>
Inheritance diagram for zk::transaction_failed:Public Member Functions | |
| transaction_failed (error_code code, std::size_t op_index) | |
| error_code | underlying_cause () const |
| The underlying cause that caused this transaction to be aborted. More... | |
| std::size_t | failed_op_index () const |
| The transaction index which caused the error (0 indexed). More... | |
Public Member Functions inherited from zk::api_error | |
| api_error (error_code code, std::string description) | |
Public Member Functions inherited from zk::error | |
| error (error_code code, std::string description) | |
| error_code | code () const |
Thrown from client::commit when a transaction cannot be committed to the system.
Check the underlying_cause to see the specific error and failed_op_index to see what operation failed.
|
inline |
|
inline |