📄 nlexception.cpp
字号:
#include "nlkit/NLException.h"
#include <ostream>
using namespace nlkit;
using namespace std;
void NLException::print(std::ostream& os) const
{
os << "throw " << name() << " ";
if(m_file && m_line > 0)
{
os << "from " << m_file << ':' << m_line << ": ";
}
}
ostream& operator<<(ostream& out, const NLException& ex)
{
ex.print(out);
return out;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -