libtabula::DBSelectionFailed Class Reference

Exception thrown when the program tries to select a new database and the database server refuses for some reason. More...

#include <exceptions.h>

Inheritance diagram for libtabula::DBSelectionFailed:
Inheritance graph
[legend]
Collaboration diagram for libtabula::DBSelectionFailed:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 DBSelectionFailed (const char *w="", int e=0)
 Create exception object.
int errnum () const
 Return the error number corresponding to the error message returned by what(), if any.

Detailed Description

Exception thrown when the program tries to select a new database and the database server refuses for some reason.


Constructor & Destructor Documentation

libtabula::DBSelectionFailed::DBSelectionFailed ( const char *  w = "",
int  e = 0 
) [inline, explicit]

Create exception object.

Parameters:
w explanation for why the exception was thrown
e the error number from the underlying database API

Member Function Documentation

int libtabula::DBSelectionFailed::errnum (  )  const [inline]

Return the error number corresponding to the error message returned by what(), if any.

If the error number is 0, it means that the error message doesn't come from the underlying database API, but rather from Libtabula itself. This happens when an error condition is detected up at this higher level instead of letting the underlying database API do it.


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

Generated on 26 May 2014 for Libtabula by  doxygen 1.6.1