📄 appexception.cpp
字号:
#include "AppException.h"
AppException::AppException(int code, string message, string name, int line) {
this->code = code;
this->msg = message;
this->sourceName = name;
this->sourceLine = line;
}
const string AppException::what() const {
string tmp = "Exception: ";
char buf[8];
sprintf(buf, "%d", sourceLine);
return tmp.append(msg).append(" [").append(sourceName).append(": ").append(buf).append("]");
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -