Namensräume
Varianten
Aktionen

std::unexpected_handler

Aus cppreference.com
< cpp‎ | error

 
 
 
Fehlerbehandlung
Exception Handling
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)
Ausnahmebehandlung Ausfälle
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(veraltet)
bad_exception
unexpected_handler(veraltet)
get_unexpected(C++11)(veraltet)
set_unexpected(veraltet)
Exception Kategorien
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
Fehlercodes
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.
Fehlercodes
errno
Assertions
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
system_error Anlage
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 <exception>
typedef void (*unexpected_handler)();
(veraltet)
std::unexpected_handler ist die Funktion Zeigertyp (Zeiger auf eine Funktion, die keine Argumente übernimmt und void zurückgibt), die installiert und wird durch die Funktionen abgefragt std::set_unexpected und std::get_unexpected und forderte von std::unexpected .
Original:
std::unexpected_handler is the function pointer type (pointer to function that takes no arguments and returns void), which is installed and queried by the functions std::set_unexpected and std::get_unexpected and 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.
Die C + +-Implementierung stellt eine Standard-std::unexpected_handler Funktion, die std::terminate() nennt. Wenn die Null-Zeiger-Wert wird installiert (mittels std::set_terminate) kann die Umsetzung des Standard-Handler statt wiederherzustellen .
Original:
The C++ implementation provides a default std::unexpected_handler function, which calls std::terminate(). If the null pointer value is installed (by means of std::set_terminate), the implementation may restore the default handler instead.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Eine benutzerdefinierte std::unexpected_handler wird erwartet, dass entweder das Programm beenden oder eine Ausnahme Wenn es eine Ausnahme, eine der drei folgenden Situationen angetroffen werden Siebenmeter:....
Original:
A user-defined std::unexpected_handler is expected to either terminate the program or throw an exception. If it throws an exception, one of the following three situations may be encountered:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
1)
die Ausnahme ausgelöst durch std::unexpected_handler erfüllt die dynamische Exception-Spezifikation, die früher verletzt wurde Die neue Ausnahme erlaubt ist, um die Funktion zu verlassen und stapeln Abwickeln weiter .
Original:
the exception thrown by std::unexpected_handler satisfies the dynamic exception specification that was violated earlier. The new exception is allowed to escape the function and stack unwinding continues.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
2)
die Ausnahme von std::unexpected_handler geworfen noch verletzt das Exception-Spezifikation:...
Original:
the exception thrown by std::unexpected_handler still violates the exception specification:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
2a) ermöglicht jedoch die Ausnahme-Spezifikation std::bad_exception: Die ausgelöste Ausnahme Objekt zerstört wird, und std::bad_exception wird von der C + + Runtime gebaut und geworfen statt .
Original:
2a) however, the exception specification allows std::bad_exception: the thrown exception object is destroyed, and std::bad_exception is constructed by the C++ runtime and thrown instead.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
2b) die Ausnahme-Spezifikation erlaubt keine std::bad_exception: std::terminate() genannt wird .
Original:
2b) the exception specification does not allow std::bad_exception: std::terminate() is called.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[Bearbeiten] Siehe auch

(veraltet)
Funktion aufgerufen, wenn eine dynamische Exception-Spezifikation verletzt wird
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.

(Funktion) [edit]
(veraltet)
wird die Funktion durch std::unexpected aufgerufen werden
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.

(Funktion) [edit]
(C++11)(veraltet)
erhält die aktuelle unexpected_handler
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.

(Funktion) [edit]