Socket操作异常类
更多...
#include <socket_base.hpp>
|
| const char * | type () const noexcept override |
| | 获取异常类型
|
| const char * | type () const noexcept override |
| | 获取异常类型
|
| | exception (const char *info="") |
| | 构造函数
|
|
| exception (const exception &other) noexcept |
| | 复制构造函数
|
|
exception & | operator= (const exception &other) noexcept |
| | 复制赋值运算符
|
|
| exception (exception &&other) noexcept |
| | 移动构造函数
|
|
exception & | operator= (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 |
| | 获取错误信息
|
Socket操作异常类
Socket操作失败时抛出的异常,封装了系统错误码。
在文件 socket_base.hpp 第 30 行定义.
◆ is_would_block()
| bool neforce::socket_exception::is_would_block |
( |
int | error | ) |
|
|
staticnoexcept |
◆ last_error()
| int neforce::socket_exception::last_error |
( |
| ) |
|
|
staticnoexcept |
◆ type()
| const char * neforce::socket_exception::type |
( |
| ) |
const |
|
inlinenodiscardoverridevirtualnoexcept |
该结构体的文档由以下文件生成: