YSTest  PreAlpha_b500_20140530
The YSLib Test Project
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义  
yexcept.cpp
浏览该文件的文档.
1 /*
2  © 2010-2013 FrankHB.
3 
4  This file is part of the YSLib project, and may only be used,
5  modified, and distributed under the terms of the YSLib project
6  license, LICENSE.TXT. By continuing to use, modify, or distribute
7  this file you indicate that you have read the license and
8  understand and accept it fully.
9 */
10 
28 #include "YSLib/Core/YModules.h"
29 #include YFM_YSLib_Core_YException
30 
31 namespace YSLib
32 {
33 
35  : GeneralEvent(s),
36  level(l)
37 {}
39  : GeneralEvent(e),
40  level(l)
41 {}
42 
43 
44 FatalError::FatalError(const char* t, const char* c) ynothrow
45  : GeneralEvent(t), content(c)
46 {}
47 
48 } // namespace YSLib;
49 
LoggedEvent(const std::string &, LevelType=Emergent) ynothrow
构造:使用异常字符串和异常等级。
Definition: yexcept.cpp:34
std::runtime_error GeneralEvent
一般运行时异常事件类。
Definition: yexcept.h:51
#define ynothrow
YSLib 无异常抛出保证:若支持 noexcept 关键字, 指定特定的 noexcept 异常规范。
Definition: ydef.h:514
GSStringTemplate< char >::basic_string string
Definition: ycont.h:164
RecordLevel
记录等级。
Definition: ycommon.h:69
FatalError(const char *, const char *) ynothrow
构造:使用标题和内容。
Definition: yexcept.cpp:44