Implements noexcept copy constructor for Exception.
This commit is contained in:
parent
0a2acc1eea
commit
7de12d53b5
|
@ -23,7 +23,8 @@ namespace ArbUt {
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
public:
|
Exception(const Exception& e) noexcept : std::logic_error(e.what()), _stack(e._stack) {}
|
||||||
|
|
||||||
const char* what() const _GLIBCXX_TXN_SAFE_DYN _GLIBCXX_NOTHROW override { return logic_error::what(); }
|
const char* what() const _GLIBCXX_TXN_SAFE_DYN _GLIBCXX_NOTHROW override { return logic_error::what(); }
|
||||||
|
|
||||||
[[nodiscard]] std::string GetStacktrace([[maybe_unused]] size_t depth = 6,
|
[[nodiscard]] std::string GetStacktrace([[maybe_unused]] size_t depth = 6,
|
||||||
|
|
Loading…
Reference in New Issue