Source: xql/xqlexception.h


Annotated List
Files
Globals
Hierarchy
Index
/***************************************************************************
                          xqlException.h  -  description
                             -------------------
    begin                : Mon Jun 26 2000
    copyright            : (C) 2000 by Raoul Markus
    email                : raoul.markus@arcormail.de
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 ***************************************************************************/
#ifndef _xqlException_h 
#define _xqlException_h 

#include "xqltypes.h"
#include 
#include 

/**
 this is the errormessagehandler for xql
 */
class xqlException {
  public:
    xqlException(int pErrId, char * pDesc) {
       mErrId = pErrId;
       strncpy(mDesc,pDesc,XQL_LEN_OF_ERRORMSG);
    }; 
    virtual ~xqlException(){
       //delete mDesc;
    }
    virtual int getErrId () {
      return mErrId;
    };
    virtual void getDesc (char * pDesc) {
      strcpy(pDesc, mDesc);
    };
  /** print on ostrem */
  void printOn(ostream& ostrm = cout);
  /** Print Errormesg on ostrm */

  private:
  int mErrId;
  char mDesc[XQL_LEN_OF_ERRORMSG+1];
 };


#endif
                                                                                                    //Del by KDevelop:    //Del by KDevelop:/** print on ostrem */

Generated by: markus on hobbes on Fri Mar 29 16:15:24 2002, using kdoc 2.0a53.