NexusForce 1.0.0
A Modern C++ Library with extended functionality, web components, and utility libraries
载入中...
搜索中...
未找到
typed_exception_wrapper< Ex > 模板类 参考final

类型化异常包装器模板类 更多...

#include <exception_ptr.hpp>

类 typed_exception_wrapper< Ex > 继承关系图:
[图例]

Public 成员函数

 typed_exception_wrapper (const Ex &ex)
 拷贝构造函数
 typed_exception_wrapper (Ex &&ex) noexcept
 移动构造函数
NEFORCE_ALWAYS_INLINE void rethrow () const override
 重新抛出异常
NEFORCE_ALWAYS_INLINE const std::type_info & type () const noexcept override
 获取异常类型信息
NEFORCE_ALWAYS_INLINE unique_ptr< exception_wrapperclone () const override
 克隆异常包装器

详细描述

template<typename Ex>
class typed_exception_wrapper< Ex >

类型化异常包装器模板类

模板参数
Ex异常类型

对特定异常类型的包装器实现,存储异常实例并提供类型特定的操作。

在文件 exception_ptr.hpp63 行定义.

构造及析构函数说明

◆ typed_exception_wrapper() [1/2]

template<typename Ex>
typed_exception_wrapper< Ex >::typed_exception_wrapper ( const Ex & ex)
inline

拷贝构造函数

参数
ex要包装的异常

在文件 exception_ptr.hpp71 行定义.

◆ typed_exception_wrapper() [2/2]

template<typename Ex>
typed_exception_wrapper< Ex >::typed_exception_wrapper ( Ex && ex)
inlinenoexcept

移动构造函数

参数
ex要包装的异常

在文件 exception_ptr.hpp78 行定义.

成员函数说明

◆ clone()

template<typename Ex>
NEFORCE_ALWAYS_INLINE unique_ptr< exception_wrapper > typed_exception_wrapper< Ex >::clone ( ) const
inlineoverridevirtual

克隆异常包装器

返回
异常包装器的唯一指针

实现了 exception_wrapper.

在文件 exception_ptr.hpp97 行定义.

引用了 make_unique().

◆ rethrow()

template<typename Ex>
NEFORCE_ALWAYS_INLINE void typed_exception_wrapper< Ex >::rethrow ( ) const
inlineoverridevirtual

重新抛出异常

注解
重新抛出存储的异常

实现了 exception_wrapper.

在文件 exception_ptr.hpp85 行定义.

◆ type()

template<typename Ex>
NEFORCE_ALWAYS_INLINE const std::type_info & typed_exception_wrapper< Ex >::type ( ) const
inlineoverridevirtualnoexcept

获取异常类型信息

返回
异常的类型信息

实现了 exception_wrapper.

在文件 exception_ptr.hpp91 行定义.


该类的文档由以下文件生成: