Espacios de nombres
Variantes
Acciones

std::error_code

De cppreference.com
< cpp‎ | error
 
 
Biblioteca de servicios
 
Control de errores
Control de excepciones
Fallas del control de excepciones
(hasta C++17)
(hasta C++17)
(C++11)(hasta C++17)
(hasta C++17)
Códigos de error
Códigos de error
Categorías de excepciones
Aserciones
Facilidad system_error
(C++11)
error_code
(C++11)
 
std::error_code
Las funciones miembro
Original:
Member functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Modificadores
Original:
Modifiers
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Los observadores
Original:
Observers
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Terceros funciones
Original:
Non-member functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Clases de ayuda
Original:
Helper classes
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
 
Definido en el archivo de encabezado <system_error>
class error_code;
(desde C++11)

std::error_code is a platform-dependent error code. Each std::error_code object holds a pair of error code originating from the operating system, or some low-level interface and a pointer to an object of type std::error_category, which corresponds to the said interface. The error code values may be not unique across different error categories.

Contenido

[editar] Las funciones miembro

construye un código de error
Original:
constructs an 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 miembro pública) [editar]
asigna otro código de error
Original:
assigns another 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 miembro pública) [editar]
asigna otro código de error
Original:
assigns another 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 miembro pública) [editar]
Modificadores
Original:
Modifiers
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
establece el valor a 0 error_code en generic_category
Original:
sets the error_code to value 0 in generic_category
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(función miembro pública) [editar]
Los observadores
Original:
Observers
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
obtiene el valor de la error_code
Original:
obtains the value of the 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 miembro pública) [editar]
obtiene el error_category para este error_code
Original:
obtains the error_category for this 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 miembro pública) [editar]
obtiene el error_condition para este error_code
Original:
obtains the error_condition for this 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 miembro pública) [editar]
obtiene la cadena explicativa para este error_code
Original:
obtains the explanatory string for this 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 miembro pública) [editar]
comprueba si el valor es distinto de cero
Original:
checks if the value is non-zero
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(función miembro pública) [editar]

[editar] Terceros funciones

Compara dos códigos de error (error_code).
(función) [editar]
Emite el valor y el mensaje a un flujo de salida.
(función) [editar]
crea un código de error a partir de una error_category
Original:
creates an error code from an error_category
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]

[editar] Clases de ayuda

Identifica una clase como una enumeración error_code.
(plantilla de clase) [editar]
Apoyo de generación de dispersión para std::error_code.
(especialización de plantilla de clase) [editar]

[editar] Ver también

Mantiene un código de error portátil.
(clase) [editar]
Clase base para las categorías de error.
(clase) [editar]