3 #include <zk/config.hpp>
7 #include <system_error>
85 std::ostream& operator<<(std::ostream&,
const error_code&);
108 public std::system_error
113 virtual ~
error() noexcept;
297 virtual ~
closed() noexcept;
406 std::size_t _op_index;
T * ptr
A simple, unowned pointer.
const std::error_category & error_category()
Get the std::error_category capable of describing ZooKeeper-provided error codes. ...
An attempt was made to read or write to a ZNode when the connection does not have permission to do...
Code for transaction_failed.
constexpr bool is_invalid_connection_state(error_code code)
Check if the provided code is an exception code for a invalid_connection_state type of exception...
Code for new_configuration_no_quorum.
constexpr bool is_check_failed(error_code code)
Check if the provided code is an exception code for a check_failed type of exception.
Base exception for cases where the ensemble is in an invalid state to perform a given action...
Code for connection_loss.
Raised when attempting an ensemble reconfiguration, but the proposed new ensemble would not be able t...
Operation was attempted that was not implemented.
The ensemble does not support reconfiguration.
Thrown from read operations when attempting to read a ZNode that does not exist.
constexpr bool is_transport_error(error_code code)
Check if the provided code is an exception code for a transport_error type of exception.
constexpr bool is_invalid_ensemble_state(error_code code)
Check if the provided code is an exception code for a invalid_ensemble_state type of exception...
std::size_t failed_op_index() const
The transaction index which caused the error (0 indexed).
The connection is closed.
error_code code() const
The code representation of this error.
std::exception_ptr get_exception_ptr_of(error_code code)
Get an std::exception_ptr containing an exception with the proper type for the given code...
Base error type for all errors raised by this library.
Connection to the server has been lost before the attempted operation was verified as completed...
Code for no_children_for_ephemerals.
error_code underlying_cause() const
The underlying cause that caused this transaction to be aborted.
Base exception for cases where a write operation was rolled back due to a failed check.
Thrown from client::commit when a transaction cannot be committed to the system.
constexpr bool is_invalid_arguments(error_code code)
Check if the provided code is an exception code for a invalid_arguments type of exception.
Arguments to an operation were invalid.
Code for marshalling_error.
void throw_error(error_code code)
Throw an exception for the given code.
The server rejected the connection due to invalid authentication information.
An error occurred while marshalling data.
Base type for errors generated because the connection is misconfigured.
Code for version_mismatch.
Thrown from modification operations when a version check is specified and the value in the database d...
Base types for errors that occurred while transporting data across a network.
Code for reconfiguration_disabled.
Ephemeral ZNodes cannot have children.
Code for ephemeral_on_local_session.
Thrown when attempting to create a ZNode, but one already exists at the specified path...
Code for reconfiguration_in_progress.
Code for invalid_arguments.
An attempt was made to create an ephemeral entry, but the connection has a local session.
not_implemented(ptr< const char > op_name)
Thrown when attempting to erase a ZNode that has children.
Code for read_only_connection.
Code for authentication_failed.
The client session has been ended by the server.
A write operation was attempted on a read-only connection.
An attempt was made to reconfigure the ensemble, but there is already a reconfiguration in progress...
Code for session_expired.
error_code
Code for all error types thrown by the client library.