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
(
)
;
|
(C++11 이전) | |
|
bad_exception
(
)
noexcept
;
|
(C++11 이후)
(C++26 이후 constexpr) |
|
| (2) | ||
|
bad_exception
(
const
bad_exception
&
other
)
throw
(
)
;
|
(C++11 이전) | |
|
bad_exception
(
const
bad_exception
&
other
)
noexcept
;
|
(C++11 이후)
(C++26 이후 constexpr) |
|
새로운
bad_exception
객체를 생성합니다.
1)
기본 생성자.
what()
는 구현체 정의 문자열을 반환합니다.
2)
복사 생성자. 객체를
other
의 내용으로 초기화합니다.
*
this
와
other
모두가
std::bad_exception
동적 타입을 가질 경우
std::
strcmp
(
what
(
)
, other.
what
(
)
)
==
0
(C++11부터)
입니다.
매개변수
| other | - |
bad_exception
초기화할 객체
|