NexusForce 1.0.0
A Modern C++ Library with extended functionality, web components, and utility libraries
载入中...
搜索中...
未找到
errc.hpp
浏览该文件的文档.
1#ifndef NEFORCE_CORE_EXCEPTION_ERRC_HPP__
2#define NEFORCE_CORE_EXCEPTION_ERRC_HPP__
3
11
13#include <cerrno>
14NEFORCE_BEGIN_NAMESPACE__
15
21
29enum class errc : int32_t {
30 success = 0,
31
33 address_in_use = EADDRINUSE,
34 address_not_available = EADDRNOTAVAIL,
36
39 bad_address = EFAULT,
42 value_too_large = EOVERFLOW,
44
45 broken_pipe = EPIPE,
46 connection_aborted = ECONNABORTED,
48 connection_refused = ECONNREFUSED,
49 connection_reset = ECONNRESET,
51 host_unreachable = EHOSTUNREACH,
52 message_size = EMSGSIZE,
53 network_down = ENETDOWN,
54 network_reset = ENETRESET,
55 network_unreachable = ENETUNREACH,
56 no_buffer_space = ENOBUFS,
57 no_protocol_option = ENOPROTOOPT,
58 not_connected = ENOTCONN,
59 operation_in_progress = EINPROGRESS,
60 operation_would_block = EWOULDBLOCK,
61 protocol_error = EPROTO,
62 protocol_not_supported = EPROTONOSUPPORT,
64 timed_out = ETIMEDOUT,
65 wrong_protocol_type = EPROTOTYPE,
66
69 directory_not_empty = ENOTEMPTY,
70 file_exists = EEXIST,
72 filename_too_long = ENAMETOOLONG,
74 invalid_seek = ESPIPE,
75 io_error = EIO,
76 is_a_directory = EISDIR,
79 no_such_device = ENODEV,
81 not_a_directory = ENOTDIR,
83 text_file_busy = ETXTBSY,
86 too_many_links = EMLINK,
88
93
96
97 interrupted = EINTR,
98 owner_dead = EOWNERDEAD,
99 state_not_recoverable = ENOTRECOVERABLE,
100
104 not_supported = ENOTSUP,
106
108 no_message = ENOMSG,
109 operation_canceled = ECANCELED,
112
114 no_link = ENOLINK,
115 not_a_socket = ENOTSOCK,
116};
117 // ErrorCode
119
120NEFORCE_END_NAMESPACE__
121#endif // NEFORCE_CORE_EXCEPTION_ERRC_HPP__
int int32_t
32位有符号整数类型
errc
系统错误码枚举
@ identifier_removed
标识符已移除
@ read_only_file_system
只读文件系统
@ network_reset
网络重置
@ value_too_large
值过大
@ no_space_on_device
设备无空间
@ argument_list_too_long
参数列表过长
@ address_not_available
地址不可用
@ not_a_directory
不是目录
@ not_a_socket
不是套接字
@ success
操作成功
@ owner_dead
所有者已死
@ no_such_file_or_directory
无此文件或目录
@ broken_pipe
管道破裂
@ connection_aborted
连接中止
@ too_many_files_open_in_system
系统中打开文件过多
@ destination_address_required
需要目标地址
@ too_many_symbolic_link_levels
符号链接层次过多
@ file_exists
文件已存在
@ inappropriate_io_control_operation
不适当的I/O控制操作
@ argument_out_of_domain
参数超出域
@ operation_in_progress
操作进行中
@ executable_format_error
可执行文件格式错误
@ connection_refused
连接被拒绝
@ illegal_byte_sequence
非法字节序列
@ timed_out
超时
@ no_lock_available
无可用锁
@ no_such_device_or_address
无此设备或地址
@ network_unreachable
网络不可达
@ cross_device_link
跨设备链接
@ no_buffer_space
无缓冲区空间
@ state_not_recoverable
状态不可恢复
@ operation_not_supported
操作不支持
@ not_connected
未连接
@ directory_not_empty
目录非空
@ filename_too_long
文件名过长
@ operation_would_block
操作会阻塞
@ wrong_protocol_type
错误的协议类型
@ connection_already_in_progress
连接已在进行中
@ operation_not_permitted
操作不允许
@ address_family_not_supported
地址族不支持
@ result_out_of_range
结果超出范围
@ address_in_use
地址已在使用中
@ network_down
网络故障
@ protocol_error
协议错误
@ bad_file_descriptor
错误的文件描述符
@ file_too_large
文件过大
@ protocol_not_supported
协议不支持
@ function_not_supported
功能不支持
@ not_supported
不支持
@ bad_address
错误地址
@ not_enough_memory
内存不足
@ device_or_resource_busy
设备或资源忙
@ already_connected
已连接
@ invalid_seek
无效的偏移定位
@ no_protocol_option
无协议选项
@ connection_reset
连接被重置
@ too_many_links
链接过多
@ stream_timeout
流超时
@ io_error
I/O错误
@ no_message
无消息
@ no_child_process
无子进程
@ text_file_busy
文本文件忙
@ no_such_process
无此进程
@ no_link
无链接
@ message_size
消息大小错误
@ resource_unavailable_try_again
资源不可用,请重试
@ invalid_argument
无效参数
@ permission_denied
权限被拒绝
@ too_many_files_open
打开文件过多
@ resource_deadlock_would_occur
可能发生死锁
@ no_message_available
无可用消息
@ is_a_directory
是目录
@ no_such_device
无此设备
@ interrupted
被中断
@ operation_canceled
操作已取消
@ host_unreachable
主机不可达
基本类型别名