libpqxx 7.8.1
|
Transaction failed to serialize. Please retry it. More...
#include <except.hxx>
Public Member Functions | |
serialization_failure (std::string const &whatarg, std::string const &q, char const sqlstate[]=nullptr) | |
![]() | |
transaction_rollback (std::string const &whatarg, std::string const &q="", char const sqlstate[]=nullptr) | |
![]() | |
sql_error (std::string const &whatarg="", std::string const &Q="", char const sqlstate[]=nullptr) | |
virtual | ~sql_error () noexcept override |
PQXX_PURE std::string const & | query () const noexcept |
The query whose execution triggered the exception. | |
PQXX_PURE std::string const & | sqlstate () const noexcept |
SQLSTATE error code if known, or empty string otherwise. | |
![]() | |
failure (std::string const &) | |
Transaction failed to serialize. Please retry it.
Can only happen at transaction isolation levels REPEATABLE READ and SERIALIZABLE.
The current transaction cannot be committed without violating the guarantees made by its isolation level. This is the effect of a conflict with another ongoing transaction. The transaction may still succeed if you try to perform it again.
|
explicit |
References pqxx::sql_error::sqlstate().