1 Star 0 Fork 0

达达的瀑布/getcoder_cpp

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
ServerResponseException.cpp 570 Bytes
一键复制 编辑 原始数据 按行查看 历史
assn 提交于 2021-08-18 21:05 +08:00 . cpp client
#include <iostream>
#include <iostream>
using namespace std;
class ServerResponseException
{
public:
std::string msg;
ServerResponseException(std::string str)
{
string prefix = "Fetch ServerResponseException: ";
prefix.append(str);
msg = prefix + "\n";
}
};
/*
int main()
{
int a = 1;
if (a > 0) {
try {
cout << "a" << endl;
throw ServerResponseException("a is > 0");
} catch (ServerResponseException &e) {
cout << " some thing error " << e.msg;
}
}
}
*/
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/ar-frame/getcoder_cpp.git
git@gitee.com:ar-frame/getcoder_cpp.git
ar-frame
getcoder_cpp
getcoder_cpp
master

搜索帮助