📄 exception.h
字号:
#ifndef _LANG_EXCEPTION_H
#define _LANG_EXCEPTION_H
#include <lang/Throwable.h>
namespace lang
{
/**
* Base class for all exceptions that an application might want to handle.
*
* @ingroup lang
*/
class Exception :
public Throwable
{
public:
/** Creates an exception with no error description. */
Exception() {}
/** Creates an exception with the specified error description. */
Exception( const lang::Format& msg ) : Throwable(msg) {}
};
} // lang
#endif // _LANG_EXCEPTION_H
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -