Shadowrun: Awakened 29 September 2011 - Build 871
Public Member Functions | Protected Member Functions | Protected Attributes
sql::SQLException Class Reference

#include <exception.h>

Inheritance diagram for sql::SQLException:

List of all members.

Public Member Functions

int getErrorCode () const
const char * getSQLState () const
 SQLException (const SQLException &e)
 SQLException (const std::string &reason, const std::string &SQLState, int vendorCode)
 SQLException ()
 SQLException (const std::string &reason)
 SQLException (const std::string &reason, const std::string &SQLState)
virtual ~SQLException () throw ()

Protected Member Functions

virtual SQLExceptioncopy ()
void * operator new (size_t size) throw (std::bad_alloc)
void * operator new (size_t N, std::allocator< SQLException > &)
void * operator new (size_t, void *) throw ()
void * operator new (size_t, const std::nothrow_t &) throw ()
void * operator new[] (size_t) throw (std::bad_alloc)
void * operator new[] (size_t, void *) throw ()
void * operator new[] (size_t, const std::nothrow_t &) throw ()

Protected Attributes

const int errNo
const std::string sql_state

Detailed Description

Definition at line 41 of file exception.h.


Constructor & Destructor Documentation

sql::SQLException::SQLException ( const SQLException e) [inline]

Definition at line 51 of file exception.h.

: std::runtime_error(e.what()), sql_state(e.sql_state), errNo(e.errNo) {}
sql::SQLException::SQLException ( const std::string &  reason,
const std::string &  SQLState,
int  vendorCode 
) [inline]

Definition at line 53 of file exception.h.

                                                                                     :
        std::runtime_error  (reason     ),
        sql_state           (SQLState   ),
        errNo               (vendorCode)
    {}
sql::SQLException::SQLException ( const std::string &  reason,
const std::string &  SQLState 
) [inline]

Definition at line 59 of file exception.h.

: std::runtime_error(reason), sql_state(SQLState), errNo(0) {}
sql::SQLException::SQLException ( const std::string &  reason) [inline]

Definition at line 61 of file exception.h.

: std::runtime_error(reason), sql_state("HY000"), errNo(0) {}
sql::SQLException::SQLException ( ) [inline]

Definition at line 63 of file exception.h.

: std::runtime_error(""), sql_state("HY000"), errNo(0) {}
virtual sql::SQLException::~SQLException ( ) throw () [inline, virtual]

Definition at line 75 of file exception.h.

{};

Member Function Documentation

virtual SQLException* sql::SQLException::copy ( ) [inline, protected, virtual]
int sql::SQLException::getErrorCode ( ) const [inline]

Definition at line 70 of file exception.h.

    {
        return errNo;
    }
const char* sql::SQLException::getSQLState ( ) const [inline]

Definition at line 65 of file exception.h.

    {
        return sql_state.c_str();
    }
void* sql::SQLException::operator new ( size_t  N,
std::allocator< SQLException > &   
) [protected]
void* sql::SQLException::operator new ( size_t  ,
void *   
) throw () [protected]
void* sql::SQLException::operator new ( size_t  ,
const std::nothrow_t &   
) throw () [protected]
void* sql::SQLException::operator new ( size_t  size) throw (std::bad_alloc) [inline, protected]

Definition at line 78 of file exception.h.

: public SQLException
void* sql::SQLException::operator new[] ( size_t  ,
const std::nothrow_t &   
) throw () [protected]
void* sql::SQLException::operator new[] ( size_t  ,
void *   
) throw () [protected]
void* sql::SQLException::operator new[] ( size_t  ) throw (std::bad_alloc) [protected]

Member Data Documentation

const int sql::SQLException::errNo [protected]

Definition at line 48 of file exception.h.

const std::string sql::SQLException::sql_state [protected]

Definition at line 47 of file exception.h.


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

Copyright © 2007-2010 by The Shadowrun: Awakened Team. This work is licensed under the GNU Lesser General Public License 3.

GNU Lesser General Public License 3 Sourceforge.net