std::bad_exception:: bad_exception
From cppreference.net
<
cpp
|
error
|
bad exception
C++
Utilities library
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Diagnostics library
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
std::bad_exception
| Member functions | ||||
|
bad_exception::bad_exception
|
||||
| (1) | ||
|
bad_exception
(
)
throw
(
)
;
|
(hasta C++11) | |
|
bad_exception
(
)
noexcept
;
|
(desde C++11)
(constexpr desde C++26) |
|
| (2) | ||
|
bad_exception
(
const
bad_exception
&
other
)
throw
(
)
;
|
(hasta C++11) | |
|
bad_exception
(
const
bad_exception
&
other
)
noexcept
;
|
(desde C++11)
(constexpr desde C++26) |
|
Construye un nuevo objeto
bad_exception
.
1)
Constructor predeterminado.
what()
devuelve una cadena definida por la implementación.
2)
Constructor de copia. Inicializa el objeto con los contenidos de
other
. Si
*
this
y
other
ambos tienen tipo dinámico
std::bad_exception
entonces
std::
strcmp
(
what
(
)
, other.
what
(
)
)
==
0
(desde C++11)
.
Parámetros
| otro | - |
bad_exception
objeto a inicializar
|