std::errc
De cppreference.com
|
|
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
| Definido en la cabecera <system_error>
|
||
| enum class errc; |
(desde C++11) | |
La enumeración
std::errc ámbito define los valores de condiciones de error portátiles que corresponden a los códigos de error POSIX . Original:
The scoped enumeration
std::errc defines the values of portable error conditions that correspond to the POSIX error codes. The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
Contenido |
[editar] Constantes de miembros
| Constant
Original: Constant The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
Explanation |
address_family_not_supported
|
condición de error correspondiente al código EAFNOSUPPORT POSIX
Original: error condition corresponding to POSIX code EAFNOSUPPORT The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
address_in_use
|
condición de error correspondiente al código EADDRINUSE POSIX
Original: error condition corresponding to POSIX code EADDRINUSE The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
address_not_available
|
condición de error correspondiente a POSIX EADDRNOTAVAIL código
Original: error condition corresponding to POSIX code EADDRNOTAVAIL The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
already_connected
|
condición de error correspondiente al código EISCONN POSIX
Original: error condition corresponding to POSIX code EISCONN The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
argument_list_too_long
|
condición de error correspondiente al código E2BIG POSIX
Original: error condition corresponding to POSIX code E2BIG The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
argument_out_of_domain
|
condición de error correspondiente al código POSIX EDOM
Original: error condition corresponding to POSIX code EDOM The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
bad_address
|
condición de error correspondiente al código EFAULT POSIX
Original: error condition corresponding to POSIX code EFAULT The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
bad_file_descriptor
|
condición de error correspondiente al código EBADF POSIX
Original: error condition corresponding to POSIX code EBADF The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
bad_message
|
condición de error correspondiente a POSIX EBADMSG código
Original: error condition corresponding to POSIX code EBADMSG The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
broken_pipe
|
condición de error correspondiente al código EPIPE POSIX
Original: error condition corresponding to POSIX code EPIPE The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
connection_aborted
|
condición de error correspondiente al código ECONNABORTED POSIX
Original: error condition corresponding to POSIX code ECONNABORTED The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
connection_already_in_progress
|
condición de error correspondiente al código EALREADY POSIX
Original: error condition corresponding to POSIX code EALREADY The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
connection_refused
|
condición de error correspondiente al código ECONNREFUSED POSIX
Original: error condition corresponding to POSIX code ECONNREFUSED The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
connection_reset
|
condición de error correspondiente al código ECONNRESET POSIX
Original: error condition corresponding to POSIX code ECONNRESET The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
cross_device_link
|
condición de error correspondiente al código EXDEV POSIX
Original: error condition corresponding to POSIX code EXDEV The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
destination_address_required
|
condición de error correspondiente al código EDESTADDRREQ POSIX
Original: error condition corresponding to POSIX code EDESTADDRREQ The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
device_or_resource_busy
|
condición de error correspondiente al código EBUSY POSIX
Original: error condition corresponding to POSIX code EBUSY The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
directory_not_empty
|
condición de error correspondiente al código ENOTEMPTY POSIX
Original: error condition corresponding to POSIX code ENOTEMPTY The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
executable_format_error
|
condición de error correspondiente al código ENOEXEC POSIX
Original: error condition corresponding to POSIX code ENOEXEC The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
file_exists
|
condición de error correspondiente a POSIX EEXIST código
Original: error condition corresponding to POSIX code EEXIST The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
file_too_large
|
condición de error correspondiente al código EFBIG POSIX
Original: error condition corresponding to POSIX code EFBIG The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
filename_too_long
|
condición de error correspondiente al código ENAMETOOLONG POSIX
Original: error condition corresponding to POSIX code ENAMETOOLONG The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
function_not_supported
|
condición de error correspondiente a POSIX ENOSYS código
Original: error condition corresponding to POSIX code ENOSYS The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
host_unreachable
|
condición de error correspondiente al código EHOSTUNREACH POSIX
Original: error condition corresponding to POSIX code EHOSTUNREACH The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
identifier_removed
|
condición de error correspondiente al código POSIX EIDRM
Original: error condition corresponding to POSIX code EIDRM The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
illegal_byte_sequence
|
condición de error correspondiente al código EILSEQ POSIX
Original: error condition corresponding to POSIX code EILSEQ The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
inappropriate_io_control_operation
|
condición de error correspondiente a POSIX ENOTTY código
Original: error condition corresponding to POSIX code ENOTTY The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
interrupted
|
condición de error correspondiente al código POSIX EINTR
Original: error condition corresponding to POSIX code EINTR The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
invalid_argument
|
condición de error correspondiente a POSIX EINVAL código
Original: error condition corresponding to POSIX code EINVAL The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
invalid_seek
|
condición de error correspondiente al código ESPIPE POSIX
Original: error condition corresponding to POSIX code ESPIPE The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
io_error
|
condición de error correspondiente al código POSIX EIO
Original: error condition corresponding to POSIX code EIO The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
is_a_directory
|
condición de error correspondiente al código EISDIR POSIX
Original: error condition corresponding to POSIX code EISDIR The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
message_size
|
condición de error correspondiente a POSIX EMSGSIZE código
Original: error condition corresponding to POSIX code EMSGSIZE The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
network_down
|
condición de error correspondiente a POSIX ENETDOWN código
Original: error condition corresponding to POSIX code ENETDOWN The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
network_reset
|
condición de error correspondiente al código ENETRESET POSIX
Original: error condition corresponding to POSIX code ENETRESET The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
network_unreachable
|
condición de error correspondiente al código ENETUNREACH POSIX
Original: error condition corresponding to POSIX code ENETUNREACH The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
no_buffer_space
|
condición de error correspondiente a POSIX ENOBUFS código
Original: error condition corresponding to POSIX code ENOBUFS The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
no_child_process
|
condición de error correspondiente a POSIX ECHILD código
Original: error condition corresponding to POSIX code ECHILD The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
no_link
|
condición de error correspondiente al código ENOLINK POSIX
Original: error condition corresponding to POSIX code ENOLINK The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
no_lock_available
|
condición de error correspondiente al código ENOLCK POSIX
Original: error condition corresponding to POSIX code ENOLCK The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
no_message_available
|
condición de error correspondiente al código ENODATA POSIX
Original: error condition corresponding to POSIX code ENODATA The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
no_message
|
condición de error correspondiente a POSIX ENOMSG código
Original: error condition corresponding to POSIX code ENOMSG The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
no_protocol_option
|
condición de error correspondiente al código ENOPROTOOPT POSIX
Original: error condition corresponding to POSIX code ENOPROTOOPT The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
no_space_on_device
|
condición de error correspondiente al código ENOSPC POSIX
Original: error condition corresponding to POSIX code ENOSPC The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
no_stream_resources
|
condición de error correspondiente al código ENOSR POSIX
Original: error condition corresponding to POSIX code ENOSR The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
no_such_device_or_address
|
condición de error correspondiente al código ENXIO POSIX
Original: error condition corresponding to POSIX code ENXIO The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
no_such_device
|
condición de error correspondiente al código ENODEV POSIX
Original: error condition corresponding to POSIX code ENODEV The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
no_such_file_or_directory
|
condición de error correspondiente a POSIX ENOENT código
Original: error condition corresponding to POSIX code ENOENT The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
no_such_process
|
condición de error correspondiente al código ESRCH POSIX
Original: error condition corresponding to POSIX code ESRCH The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
not_a_directory
|
condición de error correspondiente al código ENOTDIR POSIX
Original: error condition corresponding to POSIX code ENOTDIR The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
not_a_socket
|
condición de error correspondiente al código ENOTSOCK POSIX
Original: error condition corresponding to POSIX code ENOTSOCK The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
not_a_stream
|
condición de error correspondiente al código ENOSTR POSIX
Original: error condition corresponding to POSIX code ENOSTR The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
not_connected
|
condición de error correspondiente al código ENOTCONN POSIX
Original: error condition corresponding to POSIX code ENOTCONN The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
not_enough_memory
|
condición de error correspondiente al código POSIX ENOMEM
Original: error condition corresponding to POSIX code ENOMEM The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
not_supported
|
condición de error correspondiente al código ENOTSUP POSIX
Original: error condition corresponding to POSIX code ENOTSUP The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
operation_canceled
|
condición de error correspondiente al código ECANCELED POSIX
Original: error condition corresponding to POSIX code ECANCELED The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
operation_in_progress
|
condición de error correspondiente a POSIX EINPROGRESS código
Original: error condition corresponding to POSIX code EINPROGRESS The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
operation_not_permitted
|
condición de error correspondiente a POSIX EPERM código
Original: error condition corresponding to POSIX code EPERM The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
operation_not_supported
|
condición de error correspondiente al código EOPNOTSUPP POSIX
Original: error condition corresponding to POSIX code EOPNOTSUPP The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
operation_would_block
|
condición de error correspondiente al código EWOULDBLOCK POSIX
Original: error condition corresponding to POSIX code EWOULDBLOCK The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
owner_dead
|
condición de error correspondiente al código EOWNERDEAD POSIX
Original: error condition corresponding to POSIX code EOWNERDEAD The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
permission_denied
|
condición de error correspondiente a POSIX EACCES código
Original: error condition corresponding to POSIX code EACCES The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
protocol_error
|
condición de error correspondiente al código EPROTO POSIX
Original: error condition corresponding to POSIX code EPROTO The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
protocol_not_supported
|
condición de error correspondiente al código EPROTONOSUPPORT POSIX
Original: error condition corresponding to POSIX code EPROTONOSUPPORT The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
read_only_file_system
|
condición de error correspondiente a POSIX EROFS código
Original: error condition corresponding to POSIX code EROFS The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
resource_deadlock_would_occur
|
condición de error correspondiente al código EDEADLK POSIX
Original: error condition corresponding to POSIX code EDEADLK The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
resource_unavailable_try_again
|
condición de error correspondiente al código POSIX EAGAIN
Original: error condition corresponding to POSIX code EAGAIN The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
result_out_of_range
|
condición de error correspondiente al código ERANGE POSIX
Original: error condition corresponding to POSIX code ERANGE The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
state_not_recoverable
|
condición de error correspondiente al código POSIX ENOTRECOVERABLE
Original: error condition corresponding to POSIX code ENOTRECOVERABLE The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
stream_timeout
|
condición de error correspondiente a POSIX etime código
Original: error condition corresponding to POSIX code ETIME The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
text_file_busy
|
condición de error correspondiente al código ETXTBSY POSIX
Original: error condition corresponding to POSIX code ETXTBSY The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
timed_out
|
condición de error correspondiente a POSIX ETIMEDOUT código
Original: error condition corresponding to POSIX code ETIMEDOUT The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
too_many_files_open_in_system
|
condición de error correspondiente al código ENFILE POSIX
Original: error condition corresponding to POSIX code ENFILE The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
too_many_files_open
|
condición de error correspondiente al código EMFILE POSIX
Original: error condition corresponding to POSIX code EMFILE The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
too_many_links
|
condición de error correspondiente al código EMLINK POSIX
Original: error condition corresponding to POSIX code EMLINK The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
too_many_symbolic_link_levels
|
condición de error correspondiente a POSIX ELOOP código
Original: error condition corresponding to POSIX code ELOOP The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
value_too_large
|
condición de error correspondiente a POSIX EOVERFLOW código
Original: error condition corresponding to POSIX code EOVERFLOW The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
wrong_protocol_type
|
condición de error correspondiente a POSIX EPROTOTYPE código
Original: error condition corresponding to POSIX code EPROTOTYPE The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
[editar] Clases de ayuda
| extiende el std::is_error_condition_enum rasgo tipo para identificar los valores de la std::errc como condiciones de error Original: extends the type trait std::is_error_condition_enum to identify the the std::errc values as error conditions The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (plantilla de función) |
[editar] Terceros funciones
| (C++11) |
construye un código de error std::errc Original: constructs an std::errc error code The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (función) |
| construye una condición de error std::errc Original: constructs an std::errc error condition The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (función) |
[editar] Ejemplo
#include <iostream> #include <system_error> #include <thread> int main() { try { std::thread().detach(); // detaching a not-a-thread } catch (const std::system_error& e) { std::cout << "Caught a system_error\n"; if(e.code() == std::errc::invalid_argument) std::cout << "The error condition is std::errc::invalid_argument\n"; std::cout << "the error description is " << e.what() << '\n'; } }
Salida:
Caught a system_error The error condition is std::errc::invalid_argument the error description is Invalid argument
[editar] Ver también
| (C++11) |
tiene un código de error dependiente de la plataforma Original: holds a platform-dependent error code The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (clase) |
| (C++11) |
tiene un código de error portátil Original: holds a portable error code The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (clase) |

