00001
00002
00003
00004
00005
00006
00007
00008
00009
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:
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