Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members

CB2::ExceptionMySQL Class Reference

MySQL exception. More...

#include <DS.h>

Inheritance diagram for CB2::ExceptionMySQL:

CB2::Exception CB2::Class List of all members.

Public Types

enum  error_type { unknown_error, internal_error, connection_error, query_error }

Public Member Functions

 ExceptionMySQL ()
 Default constructor.

 ExceptionMySQL (const error_type error, const String what)
 Costructor with error type and description.

 ExceptionMySQL (const error_type error, const String what, const int line)
 Costructor with error type, description and line.

error_type GetError () const
 Get error.

String What () const
 Exception description.


Public Attributes

int tag
 Tag for user-specific data.


Private Attributes

error_type err
 Error occured.


Detailed Description

MySQL exception.

Exception thrown on MySQL error (connection error, etc.).


Member Enumeration Documentation

enum CB2::ExceptionMySQL::error_type
 

Enumeration values:
unknown_error  Unknown error.
internal_error  Internal (client) error.
connection_error  Unable to connect to the server.
query_error  Query error.


Constructor & Destructor Documentation

ExceptionMySQL::ExceptionMySQL  ) 
 

Default constructor.

ExceptionMySQL::ExceptionMySQL const error_type  error,
const String  what
 

Costructor with error type and description.

ExceptionMySQL::ExceptionMySQL const error_type  error,
const String  what,
const int  line
 

Costructor with error type, description and line.


Member Function Documentation

ExceptionMySQL::error_type ExceptionMySQL::GetError  )  const
 

Get error.

String Exception::What  )  const [inherited]
 

Exception description.

Returns:
Exception description.


Member Data Documentation

error_type CB2::ExceptionMySQL::err [private]
 

Error occured.

int CB2::Class::tag [inherited]
 

Tag for user-specific data.


The documentation for this class was generated from the following files:
Generated on Thu Sep 16 23:26:49 2004 for ColorBox2 by doxygen 1.3.7