drogon
C++14/17-based HTTP application framework
Loading...
Searching...
No Matches
drogon::orm::InDoubtError Class Reference

"Help, I don't know whether transaction was committed successfully!" More...

#include <drogon/orm/Exception.h>

Inheritance diagram for drogon::orm::InDoubtError:
Collaboration diagram for drogon::orm::InDoubtError:

Public Member Functions

DROGON_EXPORT InDoubtError (const std::string &)
Public Member Functions inherited from drogon::orm::Failure
DROGON_EXPORT Failure (const std::string &)
Public Member Functions inherited from drogon::orm::DrogonDbException
virtual ~DrogonDbException () noexcept
 Support run-time polymorphism, and keep this class abstract.

Detailed Description

"Help, I don't know whether transaction was committed successfully!"

Exception that might be thrown in rare cases where the connection to the database is lost while finishing a database transaction, and there's no way of telling whether it was actually executed by the backend. In this case the database is left in an indeterminate (but consistent) state, and only manual inspection will tell which is the case.


The documentation for this class was generated from the following file: