AnCH Framework 0.1
Another C++ Hack Framework
 
Loading...
Searching...
No Matches
anch::sql::SqlException Class Reference

SQL exception. More...

#include <sqlException.hpp>

+ Inheritance diagram for anch::sql::SqlException:
+ Collaboration diagram for anch::sql::SqlException:

Public Member Functions

 SqlException (std::string msg, bool ok=true) noexcept
 
virtual ~SqlException () noexcept
 
virtual const char * what () const noexcept
 
bool isOK () const noexcept
 

Detailed Description

SQL exception.

Manage every SQL error

Todo
put implementation in cpp file
Author
Vincent Lachenal
Since
0.1

Constructor & Destructor Documentation

◆ SqlException()

anch::sql::SqlException::SqlException ( std::string msg,
bool ok = true )
noexcept

SqlException constructor

Parameters
msgthe error message
okconnection status

◆ ~SqlException()

virtual anch::sql::SqlException::~SqlException ( )
virtualnoexcept

! SqlException destructor

+ Here is the call graph for this function:

Member Function Documentation

◆ isOK()

bool anch::sql::SqlException::isOK ( ) const
inlinenoexcept

Connection status getter

Returns
true if connection can be reused, false otherwise
+ Here is the call graph for this function:

◆ what()

virtual const char * anch::sql::SqlException::what ( ) const
virtualnoexcept

Error message getter

Returns
the error message
+ Here is the call graph for this function:

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