title | ms.custom | ms.date | ms.reviewer | ms.suite | ms.technology | ms.tgt_pltfrm | ms.topic | f1_keywords | dev_langs | helpviewer_keywords | ms.assetid | caps.latest.revision | author | ms.author | manager | ||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
bad_exception Class | Microsoft Docs |
11/04/2016 |
|
article |
|
|
|
5ae2c4ef-c7ad-4469-8a9e-a773e86bb000 |
20 |
corob-msft |
corob |
ghogen |
The class describes an exception that can be thrown from an unexpected handler.
class bad_exception : public exception {};
unexpected will throw a bad_exception
instead of terminating or instead of calling another function specified with set_unexpected if bad_exception
is included in the throw list of a function.
The value returned by what is an implementation-defined C string. None of the member functions throw any exceptions.
For a list of members inherited by the bad_exception
class, see exception Class.
See set_unexpected for an example of the use of unexpected throwing a bad_exception
.
Header: <exception>
Namespace: std