#ifndef _EXCEPTION_H_
#define _EXCEPTION_H_
#include <exception>
#include <string>
class CException : public std::exception
{
public:
const char* what() const { return m_strMessage.c_str(); }
CException(const std::string& strMessage="") : m_strMessage(strMessage) { }
virtual ~CException() { }
std::string m_strMessage;
};
#endif // _EXCEPTION_H_
Part1:CException
最新推荐文章于 2024-03-16 09:40:31 发布