Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
odbc::ErrorHandler Class Reference

#include <RDBC/blob/master/include/RDBC/odbc++/errorhandler.h>

+ Inheritance diagram for odbc::ErrorHandler:
+ Collaboration diagram for odbc::ErrorHandler:

Public Member Functions

void clearWarnings ()
 
WarningListgetWarnings ()
 
virtual ~ErrorHandler ()
 

Protected Member Functions

void _postWarning (SQLWarning *w)
 
void _checkErrorODBC2 (SQLHENV henv, SQLHDBC hdbc, SQLHSTMT hstmt, SQLRETURN r, const ODBCXX_STRING &what)
 
void _checkStmtError (SQLHSTMT hstmt, SQLRETURN r, const char *what="")
 
void _checkConError (SQLHDBC hdbc, SQLRETURN r, const char *what="")
 
void _checkEnvError (SQLHENV henv, SQLRETURN r, const char *what="")
 
 ErrorHandler (bool collectWarnings=true)
 

Private Types

enum  { MAX_WARNINGS =128 }
 

Private Attributes

PD * pd_
 
WarningListwarnings_
 
bool collectWarnings_
 

Friends

class DriverManager
 
class DataStreamBuf
 
class DataStream
 

Detailed Description

Base class for everything that might contain warnings

Definition at line 32 of file errorhandler.h.

View newest version in sPHENIX GitHub at line 32 of file errorhandler.h

Member Enumeration Documentation

anonymous enum
private
Enumerator:
MAX_WARNINGS 

Definition at line 45 of file errorhandler.h.

View newest version in sPHENIX GitHub at line 45 of file errorhandler.h

Constructor & Destructor Documentation

odbc::ErrorHandler::ErrorHandler ( bool  collectWarnings = true)
protected

Constructor

virtual odbc::ErrorHandler::~ErrorHandler ( )
virtual

Destructor

Member Function Documentation

void odbc::ErrorHandler::_checkConError ( SQLHDBC  hdbc,
SQLRETURN  r,
const char *  what = "" 
)
inlineprotected

Definition at line 82 of file errorhandler.h.

View newest version in sPHENIX GitHub at line 82 of file errorhandler.h

References ODBCXX_STRING_C.

void odbc::ErrorHandler::_checkEnvError ( SQLHENV  henv,
SQLRETURN  r,
const char *  what = "" 
)
inlineprotected

Definition at line 97 of file errorhandler.h.

View newest version in sPHENIX GitHub at line 97 of file errorhandler.h

References ODBCXX_STRING_C.

void odbc::ErrorHandler::_checkErrorODBC2 ( SQLHENV  henv,
SQLHDBC  hdbc,
SQLHSTMT  hstmt,
SQLRETURN  r,
const ODBCXX_STRING what 
)
protected
void odbc::ErrorHandler::_checkStmtError ( SQLHSTMT  hstmt,
SQLRETURN  r,
const char *  what = "" 
)
inlineprotected

Definition at line 66 of file errorhandler.h.

View newest version in sPHENIX GitHub at line 66 of file errorhandler.h

References ODBCXX_STRING_C.

void odbc::ErrorHandler::_postWarning ( SQLWarning w)
protected
void odbc::ErrorHandler::clearWarnings ( )

Clears all the warnings stored in this object

WarningList* odbc::ErrorHandler::getWarnings ( )

Fetches all the warnings in this object. The caller is responsive for deleteing the returned object.

Friends And Related Function Documentation

friend class DataStream
friend

Definition at line 35 of file errorhandler.h.

View newest version in sPHENIX GitHub at line 35 of file errorhandler.h

friend class DataStreamBuf
friend

Definition at line 34 of file errorhandler.h.

View newest version in sPHENIX GitHub at line 34 of file errorhandler.h

friend class DriverManager
friend

Definition at line 33 of file errorhandler.h.

View newest version in sPHENIX GitHub at line 33 of file errorhandler.h

Member Data Documentation

bool odbc::ErrorHandler::collectWarnings_
private

Definition at line 42 of file errorhandler.h.

View newest version in sPHENIX GitHub at line 42 of file errorhandler.h

PD* odbc::ErrorHandler::pd_
private

Definition at line 38 of file errorhandler.h.

View newest version in sPHENIX GitHub at line 38 of file errorhandler.h

WarningList* odbc::ErrorHandler::warnings_
private

Definition at line 41 of file errorhandler.h.

View newest version in sPHENIX GitHub at line 41 of file errorhandler.h


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