TdkDatabaseException Class Reference
[The Utils Module]

Provides a class for handling database exceptions. More...

#include <TdkDatabaseException.h>

Inheritance diagram for TdkDatabaseException:

TdkException TdkDatabasePortalException List of all members.

Public Types

enum  {
  UndefinedError, LoadRasterFile, AddColumn, CreateDatabaseModel,
  ColumnNoExist, DatabaseCreation, DatabaseConnection, DatabaseOpen,
  DeleteColumn, DeleteLine, DeleteLayer, DeletePoint,
  DeletePolygon, DeleteText, DeleteTable, DeleteTheme,
  DriverNotFound, FieldNotFound, ImportShape, InsertGeometry,
  InsertLayer, InsertTheme, InsertFile, LoadLayer,
  LoadLayerSet, LoadMapSet, LoadObject, LoadObjectTypeSet,
  LoadAuthenticateTables, LoadProject, LoadObjectSet, LoadTable,
  LoadTheme, LoadThemeSet, LoadViewSet, ModelCreation,
  NullDriver, NullDescriptor, NullPortal, ObjectNotFoundInMap,
  ObjectTypeNotFoundInMap, DatabaseVersionOutOfDate, QueryError, RecordDelete,
  RecordExists, RecordInsert, RecordUpdate, SequenceCreation,
  TableCreation, TableExists, TableNotExists, BlobInsert,
  UpdateLayer, UpdateTheme, UpdateObject, UpdateVersion,
  UpdateView, RelationCreation
}

Public Member Functions

 TdkDatabaseException (std::string src_file_name, int src_file_line, int error_code, TeDatabase *db=NULL, std::string more_info="")
 Construtor.
 TdkDatabaseException (std::string src_file_name, int src_file_line, int error_code, std::string dbKey="", std::string more_info="")
 Construtor.

Protected Member Functions

void setMoreInfo (TeDatabase *db)
virtual void setMessagesMap ()
 Sets the message map.

Detailed Description

Provides a class for handling database exceptions.


Member Enumeration Documentation

anonymous enum

Enumerator:
UndefinedError 
LoadRasterFile 
AddColumn 
CreateDatabaseModel 
ColumnNoExist 
DatabaseCreation 
DatabaseConnection 
DatabaseOpen 
DeleteColumn 
DeleteLine 
DeleteLayer 
DeletePoint 
DeletePolygon 
DeleteText 
DeleteTable 
DeleteTheme 
DriverNotFound 
FieldNotFound 
ImportShape 
InsertGeometry 
InsertLayer 
InsertTheme 
InsertFile 
LoadLayer 
LoadLayerSet 
LoadMapSet 
LoadObject 
LoadObjectTypeSet 
LoadAuthenticateTables 
LoadProject 
LoadObjectSet 
LoadTable 
LoadTheme 
LoadThemeSet 
LoadViewSet 
ModelCreation 
NullDriver 
NullDescriptor 
NullPortal 
ObjectNotFoundInMap 
ObjectTypeNotFoundInMap 
DatabaseVersionOutOfDate 
QueryError 
RecordDelete 
RecordExists 
RecordInsert 
RecordUpdate 
SequenceCreation 
TableCreation 
TableExists 
TableNotExists 
BlobInsert 
UpdateLayer 
UpdateTheme 
UpdateObject 
UpdateVersion 
UpdateView 
RelationCreation 


Constructor & Destructor Documentation

TdkDatabaseException::TdkDatabaseException ( std::string  src_file_name,
int  src_file_line,
int  error_code,
TeDatabase *  db = NULL,
std::string  more_info = "" 
)

Construtor.

Parameters:
src_file_name  Name of the source file where the exception happened.
src_file_line  Line number of the source file where the exception happened.
error_code  Error code associated with the exception.
more_info  This extra information must be showed with the error message.

TdkDatabaseException::TdkDatabaseException ( std::string  src_file_name,
int  src_file_line,
int  error_code,
std::string  dbKey = "",
std::string  more_info = "" 
)

Construtor.

Parameters:
src_file_name  Name of the source file where the exception happened.
src_file_line  Line number of the source file where the exception happened.
error_code  Error code associated with the exception.
more_info  This extra information must be showed with the error message.


Member Function Documentation

void TdkDatabaseException::setMoreInfo ( TeDatabase *  db  )  [protected]

void TdkDatabaseException::setMessagesMap (  )  [inline, protected, virtual]

Sets the message map.

Reimplemented from TdkException.

Reimplemented in TdkDatabasePortalException.


The documentation for this class was generated from the following files:
Generated on Fri Jun 15 16:54:34 2007 for TDK by  doxygen 1.5.2