|
NexusForce 1.0.0
A rigorously engineered full-stack C++ backend library.
|
通用错误类别 更多...
#include <error_category.hpp>
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 |
| 获取系统错误类别单例 | |
|
nodiscardoverridevirtualnoexcept |
|
inlinenodiscardoverridevirtualnoexcept |