📄 exceptions.h
字号:
#ifndef EXCEPTIONS_H#define EXCEPTIONS_H#include <stdexcept>namespace gpsmgr { namespace exceptions { struct IllegalValue {}; struct ParseError {}; template <class T> class Exception : public runtime_error { public: typedef T Type; Exception() : runtime_error(""), mType () {} Exception(const string& what, const T& exc = T()) : runtime_error(what), mType (exc) {} const Type& type() const { return mType; } private: T mType; }; } }#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -