📄 exceptions.h
字号:
#if !defined(__HVEXCEPTIONS_H__INCLUDED_)#define __HVEXCEPTIONS_H__INCLUDED_#include <string>using namespace std;#if defined(WIN32) && defined(GetMessage)#undef GetMessage#endifclass HVException {public: HVException(string msg); virtual ~HVException() {}; virtual string GetMessage() const; virtual ostream& output(ostream& os) const; friend ostream& operator<<(ostream& os, const HVException& ite); protected: string m_msg;};class HVEFile : public HVException { public: HVEFile(string filename, string msg); virtual ~HVEFile() {}; protected: string m_filename;};class HVEFileNotFound : public HVEFile { public: virtual ~HVEFileNotFound() {}; HVEFileNotFound(string filename);};#endif // __HVEXCEPTIONS_H__INCLUDED_
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -