SQLite Containers
Loading...
Searching...
No Matches
sqlite_containers::sqlite_exception Class Reference

Exception class for SQLite errors. More...

#include <Utils.hpp>

Inheritance diagram for sqlite_containers::sqlite_exception:

Public Member Functions

 sqlite_exception (const std::string &message, const int &error_code=-1)
 Constructs a new sqlite_exception with the given message. param message The error message. param errorCode The SQLite error code.
 
int error_code () const noexcept
 

Private Attributes

int m_error_code
 

Detailed Description

Exception class for SQLite errors.

Definition at line 27 of file Utils.hpp.

Constructor & Destructor Documentation

◆ sqlite_exception()

sqlite_containers::sqlite_exception::sqlite_exception ( const std::string & message,
const int & error_code = -1 )
inlineexplicit

Constructs a new sqlite_exception with the given message. param message The error message. param errorCode The SQLite error code.

Definition at line 32 of file Utils.hpp.

Member Function Documentation

◆ error_code()

int sqlite_containers::sqlite_exception::error_code ( ) const
inlinenoexcept

brief Returns the SQLite error code associated with this exception. return The SQLite error code.

Definition at line 37 of file Utils.hpp.

Member Data Documentation

◆ m_error_code

int sqlite_containers::sqlite_exception::m_error_code
private

Definition at line 41 of file Utils.hpp.


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