Namespaces
Variants

std::bad_exception:: bad_exception

From cppreference.net
Utilities library
(1)
bad_exception ( ) throw ( ) ;
(jusqu'en C++11)
bad_exception ( ) noexcept ;
(depuis C++11)
(constexpr depuis C++26)
(2)
bad_exception ( const bad_exception & other ) throw ( ) ;
(jusqu'en C++11)
bad_exception ( const bad_exception & other ) noexcept ;
(depuis C++11)
(constexpr depuis C++26)

Construit un nouvel objet bad_exception .

1) Constructeur par défaut. what() renvoie une chaîne définie par l'implémentation.
2) Constructeur de copie. Initialise l'objet avec le contenu de other . Si * this et other ont tous deux le type dynamique std::bad_exception alors std:: strcmp ( what ( ) , other. what ( ) ) == 0 (depuis C++11) .

Paramètres

autre - bad_exception objet à initialiser avec