NexusForce 1.0.0
A rigorously engineered full-stack C++ backend library.
载入中...
搜索中...
未找到
neforce::system_error_category类 参考final

系统错误类别 更多...

#include <error_category.hpp>

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

Public 成员函数

const char * name () const noexcept override
 获取错误类别名称
string message (int32_t ev) const override
 获取错误码对应的可读描述
error_condition default_error_condition (int32_t ev) const noexcept override
 获取错误码对应的默认错误条件
Public 成员函数 继承自 neforce::error_category
virtual bool equivalent (int code, const error_condition &condition) const noexcept
 检查错误码与错误条件是否等价
virtual bool equivalent (const error_code &code, int condition) const noexcept
 检查错误码与错误条件是否等价
Public 成员函数 继承自 neforce::icomparable< error_category >
constexpr bool operator== (const error_category &rhs) const noexcept(noexcept(derived().equal_to(rhs)))
 相等比较运算符
constexpr bool operator!= (const error_category &rhs) const noexcept(noexcept(!(derived().equal_to(rhs))))
 不等比较运算符
constexpr bool operator< (const error_category &rhs) const noexcept(noexcept(derived().less_than(rhs)))
 小于比较运算符
constexpr bool operator> (const error_category &rhs) const noexcept(noexcept(rhs.less_than(derived())))
 大于比较运算符
constexpr bool operator<= (const error_category &rhs) const noexcept(noexcept(!(rhs.less_than(derived()))))
 小于等于比较运算符
constexpr bool operator>= (const error_category &rhs) const noexcept(noexcept(!(derived().less_than(rhs))))
 大于等于比较运算符

额外继承的成员函数

静态 Public 成员函数 继承自 neforce::error_category
static const error_category & generic () noexcept
 获取通用错误类别单例
static const error_category & system () noexcept
 获取系统错误类别单例

详细描述

系统错误类别

将操作系统原生错误码映射为可读描述。

在文件 error_category.hpp135 行定义.

成员函数说明

◆ default_error_condition()

error_condition neforce::system_error_category::default_error_condition ( int32_t ev) const
nodiscardoverridevirtualnoexcept

获取错误码对应的默认错误条件

参数
ev错误码值
返回
默认错误条件

将当前类别的错误码映射到跨类别的通用错误条件。

重载 neforce::error_category .

◆ message()

string neforce::system_error_category::message ( int32_t ev) const
nodiscardoverridevirtual

获取错误码对应的可读描述

参数
ev错误码值
返回
错误描述字符串

实现了 neforce::error_category.

◆ name()

const char * neforce::system_error_category::name ( ) const
inlinenodiscardoverridevirtualnoexcept

获取错误类别名称

返回
类别名称

实现了 neforce::error_category.

在文件 error_category.hpp137 行定义.


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