Namespace
Varianti

Error handling

Da cppreference.com.
< cpp

 
 
Utilità libreria
Tipo di supporto (basic types, RTTI, type traits)
Gestione della memoria dinamica
La gestione degli errori
Programma di utilità
Funzioni variadic
Data e ora
Funzione oggetti
initializer_list(C++11)
bitset
hash(C++11)
Gli operatori relazionali
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>=
Coppie e tuple
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)
Swap, in avanti e spostare
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)
 
La gestione degli errori
Gestione delle eccezioni
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)
Gestione delle eccezioni fallimenti
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(deprecato)
bad_exception
unexpected_handler(deprecato)
get_unexpected(C++11)(deprecato)
set_unexpected(deprecato)
Eccezione categorie
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
Codici di errore
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.
Codici di errore
errno
Asserzioni
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
impianto 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)
 

Indice

[modifica] Gestione delle eccezioni

Il <exception> intestazione fornisce diverse classi e le funzioni relative alla gestione delle eccezioni in C + +.
Original:
The header <exception> provides several classes and functions related to exception handling in C++ programs.
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 <exception>
classe base per le eccezioni generate dai componenti della libreria standard
Original:
base class for exceptions thrown by the standard library components
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(classe) [edit]
Cattura e stoccaggio di oggetti eccezione
Original:
Capture and storage of exception objects
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
controlla se la gestione delle eccezioni è attualmente in corso
Original:
checks if exception handling is currently in progress
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(funzione) [edit]
puntatore di tipo comune per la gestione di oggetti eccezione
Original:
shared pointer type for handling exception objects
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(typedef) [edit]
crea un std::exception_ptr da un oggetto eccezione
Original:
creates an std::exception_ptr from an exception object
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(funzione di modello) [edit]
captures the current exception in a std::exception_ptr
(funzione) [edit]
genera l'eccezione da un std::exception_ptr
Original:
throws the exception from an std::exception_ptr
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(funzione) [edit]
un tipo mixin per acquisire e memorizzare le eccezioni attuali
Original:
a mixin type to capture and store current exceptions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(classe) [edit]
lancia la sua tesi con std::nested_exception misto trovi
Original:
throws its argument with std::nested_exception mixed in
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(funzione di modello) [edit]
genera l'eccezione di un std::nested_exception
Original:
throws the exception from a std::nested_exception
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(funzione di modello) [edit]
Gestione degli errori nella gestione delle eccezioni
Original:
Handling of failures in exception handling
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
funzione chiamata quando la gestione delle eccezioni non riesce
Original:
function called when exception handling fails
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(funzione) [edit]
il tipo di funzione chiamata da std::terminate
Original:
the type of the function called by std::terminate
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(typedef) [edit]
ottiene il terminate_handler corrente
Original:
obtains the current terminate_handler
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(funzione) [edit]
cambia la funzione di essere chiamato da std::terminate
Original:
changes the function to be called by std::terminate
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(funzione) [edit]
Gestione delle violazioni specifiche eccezioni
Original:
Handling of exception specification violations
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
(deprecato)
funzione chiamata quando specifica eccezione dinamica è violata
Original:
function called when dynamic exception specification is violated
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(funzione) [edit]
Eccezione generata quando specifica eccezione dinamica è violato, se possibile
Original:
exception thrown when dynamic exception specification is violated, if possible
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(classe) [edit]
il tipo di funzione chiamata da std::unexpected
Original:
the type of the function called by std::unexpected
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(typedef) [edit]
(C++11)(deprecato)
ottiene il unexpected_handler corrente
Original:
obtains the current unexpected_handler
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(funzione) [edit]
(deprecato)
cambia la funzione di essere chiamato da std::unexpected
Original:
changes the function to be called by std::unexpected
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(funzione) [edit]

[modifica] Eccezione categorie

Diverse classi di convenienza sono predefiniti nel <stdexcept> intestazione per segnalare condizioni di errore particolari. Queste classi possono essere suddivisi in due categorie: logica errori e gli errori di runtime. Gli errori logici sono la conseguenza di una logica errata all'interno del programma e possono essere prevenute. Gli errori di runtime sono dovuti ad eventi al di là del campo di applicazione del programma e non può essere facilmente prevedibile.
Original:
Several convenience classes are predefined in the header <stdexcept> to report particular error conditions. These classes can be divided into two categories: logic errors and runtime errors. Logic errors are a consequence of faulty logic within the program and may be preventable. Runtime errors are due to events beyond the scope of the program and can not be easily predicted.
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 <stdexcept>
classe di eccezione per indicare le violazioni dei presupposti logici o invarianti di classe
Original:
exception class to indicate violations of logical preconditions or class invariants
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(classe)
eccezione di classe per segnalare argomenti non validi
Original:
exception class to report invalid arguments
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(classe)
eccezione di classe per segnalare errori di dominio
Original:
exception class to report domain errors
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(classe)
classe di eccezione per segnalare tentativi di superare le dimensioni massime consentite
Original:
exception class to report attempts to exceed maximum allowed size
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(classe)
classe di eccezione per segnalare argomenti al di fuori del campo previsto
Original:
exception class to report arguments outside of expected range
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(classe)
classe di eccezione per indicare le condizioni rilevabili solo in fase di esecuzione
Original:
exception class to indicate conditions only detectable at run time
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(classe)
classe di eccezione per segnalare errori di intervallo in calcoli interni
Original:
exception class to report range errors in internal computations
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(classe)
eccezione di classe per segnalare overflow aritmetici
Original:
exception class to report arithmetic overflows
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(classe)
eccezione di classe per segnalare underflow aritmetici
Original:
exception class to report arithmetic underflows
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(classe)

[modifica] Errore numeri

Defined in header <cerrno>
macro che si espande a POSIX thread locale variable
(variabili macro) Numero di errore
Original:
macro which expands to POSIX-compatible thread-local error number variable
(variabili macro)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
macro per standard POSIX compatibili con le condizioni di errore
Original:
macros for standard POSIX-compatible error conditions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(macro costante) [edit]

[modifica] Asserzioni

Asserzioni contribuire ad attuare il controllo dei presupposti ai programmi.
Original:
Assertions help to implement checking of preconditions in programs.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
affermazione statico
esegue in fase di compilazione affermazione controllo (dal C++11)
Original:
performs compile-time assertion checking (dal C++11)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
Defined in header <cassert>
interrompe il programma se la condizione specificata dall'utente non è true. Può essere disattivato per build di rilascio
Original:
aborts the program if the user-specified condition is not true. May be disabled for release builds
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(funzione macro) [edit]

[modifica] Errore di sistema

L'intestazione definisce <system_error> tipi e funzioni utilizzate per segnalare condizioni di errore provenienti dal sistema operativo, flussi di I / O, std::future, o altra API di basso livello.
Original:
The header <system_error> defines types and functions used to report error conditions originating from the operating system, streams I/O, std::future, or other low-level APIs.
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 <system_error>
classe di base per le categorie di errore
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.

(classe) [edit]
identifica la categoria di errore generico
Original:
identifies the generic error category
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(funzione) [edit]
identifica la categoria di errore del sistema operativo
Original:
identifies the operating system error category
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(funzione) [edit]
contiene un codice di errore portatile
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.

(classe) [edit]
(C++11)
l'enumerazione std::error_condition elenco di tutti gli standard <cerrno> costanti 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.

(classe) [edit]
in possesso di un dipendente dalla piattaforma codice di errore
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.

(classe) [edit]
classe di eccezione utilizzato per segnalare le condizioni che hanno un codice_errore
Original:
exception class used to report conditions that have 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.

(classe) [edit]