drizzle
C++ MySQL-protocol-compatible database server
Loading...
Searching...
No Matches
drizzled::sql::Exception Class Reference
Inheritance diagram for drizzled::sql::Exception:
[legend]
Collaboration diagram for drizzled::sql::Exception:
[legend]

Public Member Functions

 Exception (std::string reason, std::string sql_state, drizzled::error_t error_arg)
 Exception (std::string reason, drizzled::error_t error_arg)
drizzled::error_t getErrorCode () const
const std::string & getErrorMessage () const
Exception getNextException () const
const std::string & getSQLState () const

Protected Member Functions

void setNextException (Exception arg)

Private Attributes

drizzled::error_t _error_code
std::string _sql_state
std::string _reason
std::queue< Exception > _next_exception

Friends

class ResultSet

Detailed Description

Definition at line 42 of file exception.h.

Constructor & Destructor Documentation

◆ Exception() [1/3]

drizzled::sql::Exception::Exception ( std::string reason,
std::string sql_state,
drizzled::error_t error_arg )
inline

Definition at line 45 of file exception.h.

◆ Exception() [2/3]

drizzled::sql::Exception::Exception ( )
inline

Definition at line 55 of file exception.h.

◆ Exception() [3/3]

drizzled::sql::Exception::Exception ( std::string reason,
drizzled::error_t error_arg )
inline

Definition at line 62 of file exception.h.

◆ ~Exception()

drizzled::sql::Exception::~Exception ( )
inlinenoexcept

Definition at line 70 of file exception.h.

Member Function Documentation

◆ getErrorCode()

drizzled::error_t drizzled::sql::Exception::getErrorCode ( ) const
inline

Definition at line 73 of file exception.h.

◆ getErrorMessage()

const std::string & drizzled::sql::Exception::getErrorMessage ( ) const
inline

Definition at line 78 of file exception.h.

◆ getNextException()

Exception drizzled::sql::Exception::getNextException ( ) const
inline

Definition at line 83 of file exception.h.

◆ getSQLState()

const std::string & drizzled::sql::Exception::getSQLState ( ) const
inline

Definition at line 96 of file exception.h.

◆ setNextException()

void drizzled::sql::Exception::setNextException ( Exception arg)
inlineprotected

Definition at line 103 of file exception.h.

◆ ResultSet

friend class ResultSet
friend

Definition at line 102 of file exception.h.

Member Data Documentation

◆ _error_code

drizzled::error_t drizzled::sql::Exception::_error_code
private

Definition at line 110 of file exception.h.

◆ _next_exception

std::queue<Exception> drizzled::sql::Exception::_next_exception
mutableprivate

Definition at line 113 of file exception.h.

◆ _reason

std::string drizzled::sql::Exception::_reason
private

Definition at line 112 of file exception.h.

◆ _sql_state

std::string drizzled::sql::Exception::_sql_state
private

Definition at line 111 of file exception.h.


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