Espaços nominais
Variantes
Acções

std::unexpected_handler

Da cppreference.com
< cpp‎ | error

 
 
Biblioteca de utilitários
Digite apoio (basic types, RTTI, type traits)
Gerenciamento de memória dinâmica
De tratamento de erros
Utilidades do programa
Variadic funções
Data e hora
Objetos de função
initializer_list(C++11)
bitset
hash(C++11)
Os operadores relacionais
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 e 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)
Troque, avançar e avançar
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)
 
De tratamento de erros
Manipulação de exceção
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)
Manipulação de falhas de exceção
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(obsoleta)
bad_exception
unexpected_handler(obsoleta)
get_unexpected(C++11)(obsoleta)
set_unexpected(obsoleta)
Categorias de exceção
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
Códigos de erro
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.
Códigos de erro
errno
Afirmações
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
instalação 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)
 
Defined in header <exception>
typedef void (*unexpected_handler)();
(obsoleta)
std::unexpected_handler é o tipo de ponteiro de função (ponteiro para função que não recebe argumentos e retorna void), que está instalado e consultado pelas funções std::set_unexpected e std::get_unexpected e chamado por 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.
A implementação C + + fornece um padrão std::unexpected_handler função, que exige std::terminate(). Se o valor do ponteiro nulo é instalado (por meio de std::set_terminate), a implementação pode restaurar o manipulador padrão em vez.
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.
A std::unexpected_handler definido pelo usuário deverá pôr termo ao programa ou lançar uma exceção se ele lança uma exceção, uma das seguintes três situações podem ser encontradas:....
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)
a exceção lançada pelo std::unexpected_handler satisfaz a especificação de exceção dinâmica que foi violada antes a nova exceção é permitido escapar da função e pilha desenrolar continua.
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)
a exceção lançada pelo std::unexpected_handler ainda viola a especificação de exceção:...
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), no entanto, a especificação de exceção permite std::bad_exception: o objeto exceção lançada é destruído, e std::bad_exception é construído pelo C + + runtime e jogado em vez.
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) a especificação de exceção não permite std::bad_exception: std::terminate() é chamado.
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.

[editar] Veja também

(obsoleta)
função chamada quando especificação de exceção dinâmica é violada
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.

(função) [edit]
(obsoleta)
alterações da função a ser chamado por 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.

(função) [edit]
(C++11)(obsoleta)
obtém o unexpected_handler actual
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.

(função) [edit]