#ifndef XJEXCEPTION_H #define XJEXCEPTION_H #include "dllExport.h" #include "OMCommon.h" #include #include #include class XJ_OM_EXPORT CXJException {public: CXJException(const char * sMessage); CXJException(const std::string& sMessage); CXJException(void); CXJException(const CXJException &inst); virtual ~CXJException() throw(){} CXJException &operator=(const CXJException &inst); virtual const char* what(void) const throw(); virtual void ReportException (void) const; inline void setMessage(const char * sMessage); inline void setMessage(const std::string& sMessage); protected: std::string _sErrMsg; }; #endif