Source: sqlexception.h


Annotated List
Files
Globals
Hierarchy
Index
// ##########################################################################
// ####                                                                  ####
// ####                         Prüfungsamt-Client                       ####
// ####                    ============================                  ####
// ####                                                                  ####
// #### Datenbank-Exception                                              ####
// ####                                                                  ####
// #### Version 1.00  --  25. Juni 2000                                  ####
// ####                                                                  ####
// #### Copyright (C) 2000  Thomas Dreibholz                             ####
// ####                     Universität Bonn                             ####
// ####                     EMail: Dreibholz@bigfoot.com                 ####
// ####                     WWW:   http://www.bigfoot.com/~dreibholz     ####
// ####                                                                  ####
// ##########################################################################


#ifndef SQL_EXCEPTION_H
#define SQL_EXCEPTION_H


#include "system.h"


/**
  * SQLException ist ein Exception, die bei einem SQL-Fehler aufgeworfen wird.
  *
  * @short   SQL Exception
  * @author  Thomas Dreibholz (Dreibholz@bigfoot.com)
  * @version 1.0
  */
class SQLException
{
   // ====== Constructor/Destructor =========================================
   public:
   /**
     * Constructor.
     *
     * @param title Exception-Titel.
     */
   SQLException(const char* title = NULL);

   /**
     * Destructor.
     */
   virtual ~SQLException();


   // ====== Exception-Titel zurückgeben ====================================
   /**
     * Exception-Titel zurückgeben.
     *
     * @return Titel
     */
   virtual const char* toString() const;


   /**
     * Ausgabe-Operator.
     */
   friend ostream& operator<<(ostream& os, const SQLException e);


   // ====== Private Daten ==================================================
   private:
   static const card32 MaxTitleLength = 256;

   char Title[MaxTitleLength];
};


#endif

Generated by: viper@odin on Wed Jul 12 17:11:55 2000, using kdoc 2.0a22.