Espacios de nombres
Variantes
Acciones

Error numbers

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)
 
Cada una de las macros definidas en <cerrno> se expande para expresiones constantes enteras con int tipo, cada uno con un valor positivo, igualando la mayor parte del POSIX error codes. Las constantes se definen los siguientes (la aplicación puede definir más, siempre que comienzan con 'E' seguido de dígitos o letras mayúsculas)
Original:
Each of the macros defined in <cerrno> expands to integer constant expressions with type int, each with a positive value, matching most of the POSIX error codes. The following constants are defined (the implementation may define more, as long as they begin with 'E' followed by digits or uppercase letters)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Defined in header <cerrno>
E2BIG
(C++11)
Argumento demasiado larga lista
Original:
Argument list too long
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(macro constante)
EACCES
(C++11)
Permiso denegado
Original:
Permission denied
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(macro constante)
EADDRINUSE
(C++11)
Dirección en uso
Original:
Address in use
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(macro constante)
EADDRNOTAVAIL
(C++11)
La dirección no está disponible
Original:
Address not available
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(macro constante)
EAFNOSUPPORT
(C++11)
Familia de direcciones no es compatible
Original:
Address family not supported
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(macro constante)
EAGAIN
(C++11)
Recursos disponibles, inténtelo de nuevo
Original:
Resource unavailable, try again
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(macro constante)
EALREADY
(C++11)
Conexión en curso
Original:
Connection already in progress
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(macro constante)
EBADF
(C++11)
Descriptor de archivo incorrecto
Original:
Bad file descriptor
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(macro constante)
EBADMSG
(C++11)
Bad mensaje
Original:
Bad message
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(macro constante)
EBUSY
(C++11)
Dispositivo o recurso ocupado
Original:
Device or resource busy
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(macro constante)
ECANCELED
(C++11)
Operación cancelada
Original:
Operation canceled
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(macro constante)
ECHILD
(C++11)
No hay procesos hijos
Original:
No child processes
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(macro constante)
ECONNABORTED
(C++11)
Conexión abortada
Original:
Connection aborted
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(macro constante)
ECONNREFUSED
(C++11)
Conexión rechazada
Original:
Connection refused
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(macro constante)
ECONNRESET
(C++11)
Conexión restablecida
Original:
Connection reset
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(macro constante)
EDEADLK
(C++11)
Punto muerto de recurso se produciría
Original:
Resource deadlock would occur
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(macro constante)
EDESTADDRREQ
(C++11)
Dirección de destino requerido
Original:
Destination address required
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(macro constante)
EDOM
Matemáticas argumento de dominio de la función
Original:
Mathematics argument out of domain of function
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(macro constante)
EEXIST
(C++11)
El archivo existe
Original:
File exists
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(macro constante)
EFAULT
(C++11)
Dirección errónea
Original:
Bad address
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(macro constante)
EFBIG
(C++11)
El archivo es demasiado grande
Original:
File too large
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(macro constante)
EHOSTUNREACH
(C++11)
Host es inalcanzable
Original:
Host is unreachable
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(macro constante)
EIDRM
(C++11)
Identificador eliminado
Original:
Identifier removed
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(macro constante)
EILSEQ
(C++11)
Secuencia de bytes no válida
Original:
Illegal byte sequence
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(macro constante)
EINPROGRESS
(C++11)
Operación en curso
Original:
Operation in progress
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(macro constante)
EINTR
(C++11)
Interrumpido función
Original:
Interrupted function
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(macro constante)
EINVAL
(C++11)
Argumento no válido
Original:
Invalid argument
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(macro constante)
EIO
(C++11)
I / O error
Original:
I/O error
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(macro constante)
EISCONN
(C++11)
Socket está conectado
Original:
Socket is connected
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(macro constante)
EISDIR
(C++11)
Es un directorio
Original:
Is a directory
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(macro constante)
ELOOP
(C++11)
Demasiados niveles de enlaces simbólicos
Original:
Too many levels of symbolic links
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(macro constante)
EMFILE
(C++11)
El archivo descriptor valor demasiado grande
Original:
File descriptor value too large
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(macro constante)
EMLINK
(C++11)
Demasiados enlaces
Original:
Too many links
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(macro constante)
EMSGSIZE
(C++11)
Mensaje demasiado grande
Original:
Message too large
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(macro constante)
ENAMETOOLONG
(C++11)
Nombre de archivo demasiado largo
Original:
Filename too long
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(macro constante)
ENETDOWN
(C++11)
Red desconectada
Original:
Network is down
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(macro constante)
ENETRESET
(C++11)
Conexión abortada por la red
Original:
Connection aborted by network
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(macro constante)
ENETUNREACH
(C++11)
Red inalcanzable
Original:
Network unreachable
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(macro constante)
ENFILE
(C++11)
Demasiados ficheros abiertos en el sistema
Original:
Too many files open in system
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(macro constante)
ENOBUFS
(C++11)
No hay espacio de búfer disponible
Original:
No buffer space available
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(macro constante)
ENODATA
(C++11)
No hay ningún mensaje disponible en la cola de flujo de lectura cabeza
Original:
No message is available on the STREAM head read queue
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(macro constante)
ENODEV
(C++11)
No existe el dispositivo
Original:
No such device
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(macro constante)
ENOENT
(C++11)
No existe el fichero o directorio
Original:
No such file or directory
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(macro constante)
ENOEXEC
(C++11)
Archivo ejecutable formato de error
Original:
Executable file format error
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(macro constante)
ENOLCK
(C++11)
No bloquea disponible
Original:
No locks available
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(macro constante)
ENOLINK
(C++11)
Enlace se ha roto
Original:
Link has been severed
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(macro constante)
ENOMEM
(C++11)
No hay suficiente espacio
Original:
Not enough space
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(macro constante)
ENOMSG
(C++11)
No hay ningún mensaje del tipo deseado
Original:
No message of the desired type
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(macro constante)
ENOPROTOOPT
(C++11)
Protocolo no disponible
Original:
Protocol not available
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(macro constante)
ENOSPC
(C++11)
No queda espacio en el dispositivo
Original:
No space left on device
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(macro constante)
ENOSR
(C++11)
No hay recursos Stream
Original:
No STREAM resources
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(macro constante)
ENOSTR
(C++11)
No es un STREAM
Original:
Not a STREAM
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(macro constante)
ENOSYS
(C++11)
Función no soportada
Original:
Function not supported
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(macro constante)
ENOTCONN
(C++11)
El socket no está conectado
Original:
The socket is not connected
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(macro constante)
ENOTDIR
(C++11)
No es un directorio
Original:
Not a directory
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(macro constante)
ENOTEMPTY
(C++11)
Directorio no está vacío
Original:
Directory not empty
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(macro constante)
ENOTRECOVERABLE
(C++11)
Estado que no sea recuperable
Original:
State not recoverable
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(macro constante)
ENOTSOCK
(C++11)
No es un socket
Original:
Not a socket
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(macro constante)
ENOTSUP
(C++11)
No se admite
Original:
Not supported
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(macro constante)
ENOTTY
(C++11)
Inadecuado control I / O operación
Original:
Inappropriate I/O control operation
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(macro constante)
ENXIO
(C++11)
No existe el dispositivo o la dirección
Original:
No such device or address
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(macro constante)
EOPNOTSUPP
(C++11)
La operación no soportada en socket
Original:
Operation not supported on socket
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(macro constante)
EOVERFLOW
(C++11)
El valor es demasiado grande para ser almacenado en tipo de datos
Original:
Value too large to be stored in data type
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(macro constante)
EOWNERDEAD
(C++11)
Antiguo propietario murió
Original:
Previous owner died
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(macro constante)
EPERM
(C++11)
Operación no permitida
Original:
Operation not permitted
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(macro constante)
EPIPE
(C++11)
Broken tubería
Original:
Broken pipe
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(macro constante)
EPROTO
(C++11)
Protocolo de error
Original:
Protocol error
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(macro constante)
EPROTONOSUPPORT
(C++11)
Protocolo no soportado
Original:
Protocol not supported
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(macro constante)
EPROTOTYPE
(C++11)
Protocolo mal tipo de socket
Original:
Protocol wrong type for socket
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(macro constante)
ERANGE
Resultar demasiado grande
Original:
Result too large
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(macro constante)
EROFS
(C++11)
De sólo lectura del sistema de archivos
Original:
Read-only file system
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(macro constante)
ESPIPE
(C++11)
Invalid buscan
Original:
Invalid seek
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(macro constante)
ESRCH
(C++11)
No dicho proceso
Original:
No such process
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(macro constante)
ETIME
(C++11)
Stream ioctl () de tiempo de espera
Original:
Stream ioctl() timeout
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(macro constante)
ETIMEDOUT
(C++11)
Connection timed out
Original:
Connection timed out
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(macro constante)
ETXTBSY
(C++11)
Archivo de texto ocupado
Original:
Text file busy
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(macro constante)
EWOULDBLOCK
(C++11)
Operación se bloqueara
Original:
Operation would block
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(macro constante)
EXDEV
(C++11)
Cross-device link
Original:
Cross-device link
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(macro constante)
Todos los valores están obligados a ser única excepción de que los valores de EOPNOTSUPP y ENOTSUP pueden ser idénticos y los valores de EAGAIN EWOULDBLOCK y pueden ser idénticos
Original:
All values are required to be unique except that the values of EOPNOTSUPP and ENOTSUP may be identical and the values of EAGAIN and EWOULDBLOCK may be identical
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[editar] Ejemplo

[edit]
#include <iostream>
#include <cmath>
#include <cerrno>
#include <cstring>
 
int main()
{
    double not_a_number = std::log(-1.0);
    if (errno == EDOM) {
        std::cout << "log(-1) failed: " << std::strerror(errno) << '\n';
    }
}

Output:

log(-1) failed: Numerical argument out of domain

[editar] Ver también

(C++11)
la enumeración std::error_condition lista de todos los estándares <cerrno> constantes macro
Original:
the std::error_condition enumeration listing all standard <cerrno> macro constants
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(clase) [edit]
macro que se expande para POSIX compatible local de subprocesos variable
(variables macro) número de error
Original:
macro which expands to POSIX-compatible thread-local error number variable
(variables macro)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
muestra una cadena de caracteres correspondiente del error actual a stderr
Original:
displays a character string corresponding of the current error to stderr
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(función) [edit]
devuelve una versión de texto de un código de error
Original:
returns a text version of a given 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) [edit]