NexusForce 1.0.0
A rigorously engineered full-stack C++ backend library.
载入中...
搜索中...
未找到
neforce::exception结构体 参考

异常基类 更多...

#include <exception.hpp>

类 neforce::exception 继承关系图:
[图例]

Public 成员函数

 exception (const char *info="")
 构造函数
 exception (const exception &other) noexcept
 复制构造函数
exceptionoperator= (const exception &other) noexcept
 复制赋值运算符
 exception (exception &&other) noexcept
 移动构造函数
exceptionoperator= (exception &&other) noexcept
 移动赋值运算符
template<typename Error, enable_if_t< is_base_of_v< exception, Error >, int > = 0>
 exception (const Error &error)
 模板构造函数
virtual ~exception ()=default
 虚析构函数
virtual const char * what () const noexcept
 获取错误信息
virtual const char * type () const noexcept
 获取异常类型

详细描述

异常基类

在文件 exception.hpp77 行定义.

构造及析构函数说明

◆ exception() [1/2]

neforce::exception::exception ( const char * info = "")
inlineexplicit

◆ exception() [2/2]

template<typename Error, enable_if_t< is_base_of_v< exception, Error >, int > = 0>
neforce::exception::exception ( const Error & error)
inlineexplicit

模板构造函数

模板参数
Error错误类型
参数
error错误对象

从其他异常类型构造。

在文件 exception.hpp143 行定义.

引用了 exception(), type() , 以及 what().

成员函数说明

◆ type()

◆ what()

virtual const char * neforce::exception::what ( ) const
inlinenodiscardvirtualnoexcept

获取错误信息

返回
错误信息字符串

在文件 exception.hpp155 行定义.

被这些函数引用 exception() , 以及 neforce::get_current_task_group().


该结构体的文档由以下文件生成: