📄 myexception.h
字号:
#ifndef myException_H
#define myException_H
#include <string>
#include <iostream>
using namespace std;
class myException
{
public:
// int: error code, string is the concrete error message
myException(int,const string&);
~myException() {};
/*
how to handle the exception is done here, so
far, just write the message to screen and log file
*/
virtual void response();
int getErrCode() { return errorCode; }
string& getErrMsg() { return errorMsg; }
private:
void initVars();
private:
int errorCode;
string errorMsg;
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -