relx 0.1.0
A Modern C++23 Type-Safe SQL Query Builder
Loading...
Searching...
No Matches
relx::connection::TransactionException Class Reference

Exception thrown when transaction operations fail. More...

#include <relx/connection/transaction_guard.hpp>

Inheritance diagram for relx::connection::TransactionException:

Public Member Functions

 TransactionException (const ConnectionError &error)
 
 TransactionException (const std::string &message)
 
int error_code () const noexcept
 Get the error code associated with this exception.
 

Detailed Description

Exception thrown when transaction operations fail.

Definition at line 12 of file transaction_guard.hpp.

Constructor & Destructor Documentation

◆ TransactionException() [1/2]

relx::connection::TransactionException::TransactionException ( const ConnectionError error)
inlineexplicit

Definition at line 14 of file transaction_guard.hpp.

◆ TransactionException() [2/2]

relx::connection::TransactionException::TransactionException ( const std::string &  message)
inlineexplicit

Definition at line 17 of file transaction_guard.hpp.

Member Function Documentation

◆ error_code()

int relx::connection::TransactionException::error_code ( ) const
inlinenoexcept

Get the error code associated with this exception.

Returns
The database-specific error code

Definition at line 22 of file transaction_guard.hpp.


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