std::error_code
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>
|
||
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.
[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úblico) | |
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úblico) | |
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úblico) | |
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úblico) | |
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úblico) | |
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úblico) | |
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úblico) | |
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úblico) | |
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úblico) |
[editar] Terceros funciones
compara dos error_code sOriginal: compares two error_code sThe text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (función) | |
emite el valor y el mensaje a un flujo de salida Original: outputs the value and the message to an output stream The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (función) | |
(C++11) |
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] Clases de ayuda
(C++11) |
Identifica una clase como una error_code enumeración Original: identifies a class as an error_code enumeration The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (plantilla de clase) |
(C++11) |
apoyo hash para std::error_code Original: hash support for std::error_code The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (especialización de plantilla de clase) |
[editar] Ver también
(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) |
(C++11) |
clase base para las categorías de error Original: base class for error categories The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (clase) |