Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

db::Exception Class Reference

Exceptions thrown by the database package. More...

#include <Exception.h>

List of all members.

Public Types

enum  {
  FILE_NOT_FOUND, BAD_ROW, BAD_COLUMN, BAD_ENTRY,
  NO_CONNECTION
}
 Enumerate all the types of exceptions thrown. More...

Public Member Functions

 Exception (const char *f, int lno, int x, const char *msg=0)

Public Attributes

std::string fFile
int fLine
 File the threw the exception.
int fId
 Line number from which the exception was thrown.
std::string fMsg
 Id # of exception (see above).


Detailed Description

Exceptions thrown by the database package.

Definition at line 15 of file pkgs/Database/Exception.h.


Member Enumeration Documentation

anonymous enum
 

Enumerate all the types of exceptions thrown.

Enumeration values:
FILE_NOT_FOUND 
BAD_ROW 
BAD_COLUMN 
BAD_ENTRY 
NO_CONNECTION 

Definition at line 18 of file pkgs/Database/Exception.h.

00018          {
00019       FILE_NOT_FOUND,
00020       BAD_ROW,
00021       BAD_COLUMN,
00022       BAD_ENTRY,
00023       NO_CONNECTION
00024     };


Constructor & Destructor Documentation

db::Exception::Exception const char *  f,
int  lno,
int  x,
const char *  msg = 0
[inline]
 

Exceptions thrown by the geometry package

Parameters:
f : file name throwing exception. Use __FILE__ typically.
lno : Line number in file. Use __LINE__ typically.
x : Exception ID number (see enum above)
msg : Optional text message

Definition at line 31 of file pkgs/Database/Exception.h.

00031                                                                 :
00032       fFile(f), fLine(lno), fId(x) {
00033       if (msg!=0) fMsg = msg; 
00034       std::cerr << "* Exception in " << fFile << ":" << fLine
00035                 << " id=" << fId << ": " << fMsg << std::endl;
00036     }


Member Data Documentation

std::string db::Exception::fFile
 

Definition at line 39 of file pkgs/Database/Exception.h.

int db::Exception::fId
 

Line number from which the exception was thrown.

Definition at line 41 of file pkgs/Database/Exception.h.

int db::Exception::fLine
 

File the threw the exception.

Definition at line 40 of file pkgs/Database/Exception.h.

std::string db::Exception::fMsg
 

Id # of exception (see above).

Definition at line 42 of file pkgs/Database/Exception.h.


The documentation for this class was generated from the following file:
Generated on Sun Nov 22 04:45:30 2009 for NOvA Offline by  doxygen 1.3.9.1