Espacios de nombres
Variantes
Acciones

std::errc

De cppreference.com
< cpp‎ | error

 
 
Utilidades de la biblioteca
Escriba apoyo (basic types, RTTI, type traits)
Gestión de memoria dinámica
Gestión de errores
Programa de servicios públicos
Funciones variadic
Fecha y hora
Objetos Function
initializer_list(C++11)
bitset
hash(C++11)
Operadores relacionales
Original:
Relational operators
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
rel_ops::operator!=
rel_ops::operator>
rel_ops::operator<=
rel_ops::operator>=
Pares y tuplas
Original:
Pairs and tuples
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
pair
tuple(C++11)
piecewise_construct_t(C++11)
piecewise_construct(C++11)
Cambiar, hacia adelante y mover
Original:
Swap, forward and move
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
swap
forward(C++11)
move(C++11)
move_if_noexcept(C++11)
declval(C++11)
 
Gestión de errores
Manejo de excepciones
Original:
Exception handling
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
exception
uncaught_exception
exception_ptr(C++11)
make_exception_ptr(C++11)
current_exception(C++11)
rethrow_exception(C++11)
nested_exception(C++11)
throw_with_nested(C++11)
rethrow_if_nested(C++11)
Fallas de control de excepciones
Original:
Exception handling failures
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
terminate
terminate_handler
get_terminate(C++11)
set_terminate
unexpected(obsoleto)
bad_exception
unexpected_handler(obsoleto)
get_unexpected(C++11)(obsoleto)
set_unexpected(obsoleto)
Categorías excepción
Original:
Exception categories
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
logic_error
invalid_argument
domain_error
length_error
out_of_range
runtime_error
range_error
overflow_error
underflow_error
Los códigos de error
Original:
Error codes
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Los códigos de error
errno
Las afirmaciones
Original:
Assertions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
assert
instalación SYSTEM_ERROR
Original:
system_error facility
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
error_category(C++11)
generic_category(C++11)
system_category(C++11)
error_condition(C++11)
errc(C++11)
error_code(C++11)
system_error(C++11)
 
Defined in header <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.

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.

(función de plantilla)

[editar] Terceros funciones

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';
    }
}

Output:

Caught a system_error
The error condition is std::errc::invalid_argument
the error description is Invalid argument

[editar] Ver también

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) [edit]
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) [edit]