xref: /llvm-project/libcxxabi/src/stdlib_exception.cpp (revision fe989a98176a7215cdbbcedcdf65e630f40a0d80)
1 //===---------------------------- exception.cpp ---------------------------===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is dual licensed under the MIT and the University of Illinois Open
6 // Source Licenses. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 
10 #include <exception>
11 
12 namespace std
13 {
14 
15 // exception
16 
17 exception::~exception() _NOEXCEPT
18 {
19 }
20 
21 const char* exception::what() const _NOEXCEPT
22 {
23   return "std::exception";
24 }
25 
26 // bad_exception
27 
28 bad_exception::~bad_exception() _NOEXCEPT
29 {
30 }
31 
32 const char* bad_exception::what() const _NOEXCEPT
33 {
34   return "std::bad_exception";
35 }
36 
37 }  // std
38