📄 exception.h
字号:
// Exception.h: interface for the Exception class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_EXCEPTION_H__07087BEF_AAD4_4C2E_98F5_0EA8C3636120__INCLUDED_)
#define AFX_EXCEPTION_H__07087BEF_AAD4_4C2E_98F5_0EA8C3636120__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include <string>
#include "Debug.h"
using namespace std;
class Exception
{
public:
Exception(const char *str):error(str){ }
Exception(const string& aError):error(aError) { dcdrun(if(error.size()>0)) dcdebug("Thrown: %s\n", error.c_str()); }
virtual ~Exception() { }
virtual const string &getError()const{ return error; }
protected:
string error;
};
#endif // !defined(AFX_EXCEPTION_H__07087BEF_AAD4_4C2E_98F5_0EA8C3636120__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -