You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
660 B
C++

#ifndef XJEXCEPTION_H
#define XJEXCEPTION_H
#include "dllExport.h"
#include "OMCommon.h"
#include <exception>
#include <string>
#include <signal.h>
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