Lines Matching refs:exception
6 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
14 exception synopsis
19 class exception
22 exception() noexcept;
23 exception(const exception&) noexcept;
24 exception& operator=(const exception&) noexcept;
25 virtual ~exception() noexcept;
30 : public exception
94 // <vcruntime_exception.h> defines its own std::exception and std::bad_exception types,
108 // The std::exception class was already included above, but we're explicit about this condition her…
111 // However, <vcruntime_exception.h> does not define std::exception and std::bad_exception
114 // Since libc++ still wants to provide the std::exception hierarchy even when _HAS_EXCEPTIONS == 0
116 // of the VCRuntime std::exception and std::bad_exception types in that mode.
123 class exception { // base of all library exceptions
125 exception() _NOEXCEPT : __data_() {}
127 explicit exception(char const* __message) _NOEXCEPT : __data_() {
132 exception(exception const&) _NOEXCEPT {}
134 exception& operator=(exception const&) _NOEXCEPT { return *this; }
136 virtual ~exception() _NOEXCEPT {}
138 … char const* what() const _NOEXCEPT { return __data_._What ? __data_._What : "Unknown exception"; }
144 class bad_exception : public exception {
146 bad_exception() _NOEXCEPT : exception("bad exception") {}
150 // On all other platforms, we define our own std::exception and std::bad_exception types
153 class _LIBCPP_EXCEPTION_ABI exception {
155 _LIBCPP_INLINE_VISIBILITY exception() _NOEXCEPT {}
156 _LIBCPP_INLINE_VISIBILITY exception(const exception&) _NOEXCEPT = default;
158 virtual ~exception() _NOEXCEPT;
162 class _LIBCPP_EXCEPTION_ABI bad_exception : public exception {