Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

generalexception.h

Go to the documentation of this file.
00001 /********************************************************************
00002         Copyright (c) 2001, Lee Patterson & Ant Works Software
00003         http://ssobjects.sourceforge.net
00004 
00005         created  :  03/21/2000 9:00pm
00006         filename :  generalexception.h
00007         author   :  Lee Patterson (lee@antws.com)
00008         
00009         purpose  :  base exception class
00010 *********************************************************************/
00011 
00012 #ifndef GENERALEXCEPTION_H
00013 #define GENERALEXCEPTION_H
00014 
00015 #include <stdio.h>
00016 #include <stdarg.h>
00017 
00018 #include "cstr.h"
00019 
00020 namespace ssobjects
00021 {
00022 
00023 #define throwGeneralException(m) (throw GeneralException(m,__FILE__,__LINE__))
00024 
00025 class GeneralException
00026 {
00027   private:
00028     CStr        m_sMessage;
00029     CStr        m_sFullMessage;
00030     int         m_nError;
00031 
00032   public:       // Constructor/destructor
00033     GeneralException(const char* pszMessage,const char* pszFname,const int iLine);
00034     virtual ~GeneralException() {}
00035 
00036   public:
00037     char*       getErrorMsg()           {return m_sMessage;}
00038     char*       getFullErrorMsg()       {return m_sFullMessage;}
00039     int         getError()              {return m_nError;}
00040 };
00041 
00042 };
00043 
00044 #endif
00045 
00046 
00047 
00048 
00049 

Generated on Thu Nov 8 12:39:25 2001 for SimpleServerObjects by doxygen1.2.11 written by Dimitri van Heesch, © 1997-2001