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

#include <warning.h>

List of all members.

Public Member Functions

int getErrorCode () const
const std::string & getMessage () const
const SQLWarninggetNextWarning () const
const std::string & getSQLState () const
void setNextWarning (SQLWarning *_next)
 SQLWarning (const std::string &reason)
 SQLWarning (const std::string &reason, const std::string &SQLState)
 SQLWarning (const std::string &reason, const std::string &SQLState, int vendorCode)
 SQLWarning ()
virtual ~SQLWarning () throw ()

Protected Member Functions

virtual SQLWarningcopy ()
 SQLWarning (const SQLWarning &e)

Protected Attributes

const std::string descr
const int errNo
SQLWarningnext
const std::string sql_state

Private Member Functions

const SQLWarningoperator= (const SQLWarning &rhs)

Detailed Description

Definition at line 28 of file warning.h.


Constructor & Destructor Documentation

sql::SQLWarning::SQLWarning ( const std::string &  reason,
const std::string &  SQLState,
int  vendorCode 
) [inline]

Definition at line 39 of file warning.h.

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

Definition at line 43 of file warning.h.

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

Definition at line 47 of file warning.h.

                                        : sql_state ("HY000"), errNo(0), descr(reason)
    {
    }
sql::SQLWarning::SQLWarning ( ) [inline]

Definition at line 51 of file warning.h.

Referenced by copy().

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

Definition at line 80 of file warning.h.

{};
sql::SQLWarning::SQLWarning ( const SQLWarning e) [inline, protected]

Definition at line 84 of file warning.h.

: sql_state(e.sql_state), errNo(e.errNo), next(e.next), descr(e.descr) {}

Member Function Documentation

virtual SQLWarning* sql::SQLWarning::copy ( ) [inline, protected, virtual]

Definition at line 86 of file warning.h.

References SQLWarning().

    {
        return new SQLWarning(*this);
    }
int sql::SQLWarning::getErrorCode ( ) const [inline]

Definition at line 65 of file warning.h.

References errNo.

    {
        return errNo;
    }
const std::string& sql::SQLWarning::getMessage ( ) const [inline]

Definition at line 54 of file warning.h.

References descr.

    {
        return descr;
    }
const SQLWarning* sql::SQLWarning::getNextWarning ( ) const [inline]

Definition at line 70 of file warning.h.

References next.

    {
        return next;
    }
const std::string& sql::SQLWarning::getSQLState ( ) const [inline]

Definition at line 60 of file warning.h.

References sql_state.

    {
        return sql_state;
    }
const SQLWarning& sql::SQLWarning::operator= ( const SQLWarning rhs) [private]
void sql::SQLWarning::setNextWarning ( SQLWarning _next) [inline]

Definition at line 75 of file warning.h.

References next.

    {
        next = _next;
    }

Member Data Documentation

const std::string sql::SQLWarning::descr [protected]

Definition at line 35 of file warning.h.

Referenced by getMessage().

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

Definition at line 33 of file warning.h.

Referenced by getErrorCode().

Definition at line 34 of file warning.h.

Referenced by getNextWarning(), and setNextWarning().

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

Definition at line 32 of file warning.h.

Referenced by getSQLState().


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