YSTest: exception.cpp 源文件

YSTest PreAlpha_b900_20201012 The YSLib Test Project

ystdex/exception.cpp
浏览该文件的文档.
1 /*
2 © 2014, 2016, 2018 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
55 allocator_mismatch_error::allocator_mismatch_error()
56 : invalid_argument("Mismatched allocator found.")
57 {}
58
59 allocator_mismatch_error::~allocator_mismatch_error() = default;
60
61 void
62 throw_allocator_mismatch_error()
63 {
64 throw allocator_mismatch_error();
65 }
66
67 } // namespace ystdex;
68
ystdex::unsupported::~unsupported
~unsupported() override
虚析构：类定义外默认实现。
ystdex::throw_allocator_mismatch_error
void throw_allocator_mismatch_error()
Definition: ystdex/exception.cpp:62
ystdex::invalid_construction::invalid_construction
invalid_construction()
Definition: ystdex/exception.cpp:42
ystdex::allocator_mismatch_error::~allocator_mismatch_error
~allocator_mismatch_error() override
虚析构：类定义外默认实现。
ystdex::invalid_construction::~invalid_construction
~invalid_construction() override
虚析构：类定义外默认实现。
ystdex::allocator_mismatch_error
不满足分配器兼容性要求导致的异常。
Definition: ystdex/exception.h:211
ystdex::throw_invalid_construction
void throw_invalid_construction()
Definition: ystdex/exception.cpp:49
ystdex::narrowing_error::~narrowing_error
~narrowing_error() override
虚析构：类定义外默认实现。
ystdex::allocator_mismatch_error::allocator_mismatch_error
allocator_mismatch_error()
Definition: ystdex/exception.cpp:55
exception.h
标准库异常扩展接口。
ystdex
<memory> 特性测试宏。
Definition: ydef.h:1262
ystdex::invalid_construction
使用不满足构造限制检查导致的异常。
Definition: ystdex/exception.h:174
ystdex::unimplemented::~unimplemented
~unimplemented() override
虚析构：类定义外默认实现。