tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
errc.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSL-1.0
2// SPDX-FileCopyrightText: Copyright (C) 2020 Tobias Hienzsch
3
4#ifndef TETL_SYSTEM_ERROR_ERRC_HPP
5#define TETL_SYSTEM_ERROR_ERRC_HPP
6
7#include <etl/_system_error/is_error_condition_enum.hpp>
8
9namespace etl {
10
11/// \brief The scoped enumeration etl::errc defines the values of portable error
12/// conditions.
13/// \warning The integer values do *not* match POSIX
14enum struct errc : unsigned char {
15 address_family_not_supported = 1, // EAFNOSUPPORT
16 address_in_use, // EADDRINUSE
17 address_not_available, // EADDRNOTAVAIL
18 already_connected, // EISCONN
21 bad_address, // EFAULT
22 bad_file_descriptor, // EBADF
23 bad_message, // EBADMSG
24 broken_pipe, // EPIPE
25 connection_aborted, // ECONNABORTED
27 connection_refused, // ECONNREFUSED
28 connection_reset, // ECONNRESET
29 cross_device_link, // EXDEV
30 destination_address_required, // EDESTADDRREQ
32 directory_not_empty, // ENOTEMPTY
33 executable_format_error, // ENOEXEC
34 file_exists, // EEXIST
35 file_too_large, // EFBIG
36 filename_too_long, // ENAMETOOLONG
37 function_not_supported, // ENOSYS
38 host_unreachable, // EHOSTUNREACH
39 identifier_removed, // EIDRM
40 illegal_byte_sequence, // EILSEQ
42 interrupted, // EINTR
43 invalid_argument, // EINVAL
44 invalid_seek, // ESPIPE
45 io_error, // EIO
46 is_a_directory, // EISDIR
47 message_size, // EMSGSIZE
48 network_down, // ENETDOWN
49 network_reset, // ENETRESET
50 network_unreachable, // ENETUNREACH
51 no_buffer_space, // ENOBUFS
52 no_child_process, // ECHILD
53 no_link, // ENOLINK
54 no_lock_available, // ENOLCK
55 no_message_available, // ENODATA
56 no_message, // ENOMSG
57 no_protocol_option, // ENOPROTOOPT
58 no_space_on_device, // ENOSPC
59 no_stream_resources, // ENOSR
61 no_such_device, // ENODEV
63 no_such_process, // ESRCH
64 not_a_directory, // ENOTDIR
65 not_a_socket, // ENOTSOCK
66 not_a_stream, // ENOSTR
67 not_connected, // ENOTCONN
68 not_enough_memory, // ENOMEM
69 not_supported, // ENOTSUP
70 operation_canceled, // ECANCELED
71 operation_in_progress, // EINPROGRESS
73 operation_not_supported, // EOPNOTSUPP
74 operation_would_block, // EWOULDBLOCK
75 owner_dead, // EOWNERDEAD
76 permission_denied, // EACCES
77 protocol_error, // EPROTO
78 protocol_not_supported, // EPROTONOSUPPORT
79 read_only_file_system, // EROFS
82 result_out_of_range, // ERANGE
83 state_not_recoverable, // ENOTRECOVERABLE
84 stream_timeout, // ETIME
85 text_file_busy, // ETXTBSY
86 timed_out, // ETIMEDOUT
88 too_many_files_open, // EMFILE
89 too_many_links, // EMLINK
91 value_too_large, // EOVERFLOW
92 wrong_protocol_type, // EPROTOTYPE
93};
94
95template <>
96struct is_error_condition_enum<errc> : true_type { };
97
98} // namespace etl
99
100#endif // TETL_SYSTEM_ERROR_ERRC_HPP
Definition adjacent_find.hpp:9
errc
The scoped enumeration etl::errc defines the values of portable error conditions.
Definition errc.hpp:14
@ identifier_removed
@ read_only_file_system
@ no_space_on_device
@ argument_list_too_long
@ address_not_available
@ no_such_file_or_directory
@ connection_aborted
@ too_many_files_open_in_system
@ destination_address_required
@ too_many_symbolic_link_levels
@ inappropriate_io_control_operation
@ argument_out_of_domain
@ operation_in_progress
@ executable_format_error
@ connection_refused
@ illegal_byte_sequence
@ no_lock_available
@ no_such_device_or_address
@ network_unreachable
@ cross_device_link
@ state_not_recoverable
@ operation_not_supported
@ 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
@ bad_file_descriptor
@ protocol_not_supported
@ function_not_supported
@ not_enough_memory
@ device_or_resource_busy
@ already_connected
@ no_protocol_option
@ connection_reset
@ no_child_process
@ no_stream_resources
@ resource_unavailable_try_again
@ invalid_argument
@ permission_denied
@ too_many_files_open
@ resource_deadlock_would_occur
@ no_message_available
@ operation_canceled
@ host_unreachable
Definition is_error_condition_enum.hpp:12