00001
00006 #ifndef __BGDNetException_h__
00007 #define __BGDNetException_h__
00008
00009 #include "BGDNetConfig.h"
00010
00011 #include <string>
00012 #include <nwcaldef.h>
00013
00014 namespace BGDNet
00015 {
00016
00017 using std::string;
00018
00026 class BGDNET_API Exception
00027 {
00028 public:
00029
00030 Exception( NWCCODE errCode, const char* errMsg = 0 );
00038 Exception( const Exception& e );
00043 ~Exception( void );
00048 Exception& operator =( const Exception& e );
00053 NWCCODE code( void ) const;
00059 const char* what( void ) const;
00065 private:
00066
00067 NWCCODE m_errCode;
00072 string* m_pMsg;
00076 };
00077
00078 }
00079
00080 #endif //__BGDNetException_h__