Files
ylib/include/base/exception.h
xx ef63cfd6aa 1、删除部分三方库
2、整合ylib为一个lib库
2024-05-26 12:51:32 +08:00

29 lines
438 B
C++

#pragma once
#include <string>
#include <exception>
#include "base/define.h"
/**
* @brief 异常处理类
*/
namespace ylib
{
class exception:public std::exception
{
public:
exception(const std::string &msg);
~exception();
virtual char const* what() const
#ifdef __linux__
noexcept
#endif
override{return m_msg.c_str();}
private:
std::string m_msg;
};
}