YSTest: exception.cpp 源文件

YSTest PreAlpha_b800_20170810 The YSLib Test Project

- 首页
- 相关页面
- 模块
- 命名空间
- 类
- 文件

- 文件列表
- 文件成员

ystdex/exception.cpp
浏览该文件的文档.
1 /*
2 © 2014, 2016 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 "ystdex/exception.h"
29
30 namespace ystdex
31 {
32
33 unsupported::~unsupported() = default;
34
35
36 unimplemented::~unimplemented() = default;
37
38
39 narrowing_error::~narrowing_error() = default;
40
41
42 invalid_construction::invalid_construction()
43 : invalid_argument("Violation on construction found.")
44 {}
45
46 invalid_construction::~invalid_construction() = default;
47
48 void
49 throw_invalid_construction()
50 {
51 throw invalid_construction();
52 }
53
54 } // namespace ystdex;
55
ystdex::unsupported::~unsupported
~unsupported() override
虚析构：类定义外默认实现。
ystdex::unimplemented::~unimplemented
~unimplemented() override
虚析构：类定义外默认实现。
ystdex
特性测试宏。
Definition: ydef.h:822
exception.h
ystdex::invalid_construction::invalid_construction
invalid_construction()
Definition: ystdex/exception.cpp:42
ystdex::throw_invalid_construction
void throw_invalid_construction()
Definition: ystdex/exception.cpp:49
ystdex::invalid_construction
使用不满足构造限制检查导致的异常。
Definition: ystdex/exception.h:174
ystdex::invalid_construction::~invalid_construction
~invalid_construction() override
虚析构：类定义外默认实现。
ystdex::narrowing_error::~narrowing_error
~narrowing_error() override
虚析构：类定义外默认实现。