3 * - By John Hodge (thePowersGang)
6 * - C++'s base exception type
8 #ifndef _LIBCXX_EXCEPTION_
9 #define _LIBCXX_EXCEPTION_
11 #define noexcept throw()
22 exception(const exception& e) noexcept;
23 exception& operator= (const exception& e) noexcept;
24 virtual ~exception() noexcept;
25 virtual const char* what() const noexcept;
27 exception(const string& what_str) noexcept;
34 bad_exception() noexcept;
37 typedef void (*terminate_handler)();
38 typedef void (*unexpected_handler)();
40 extern void set_terminate(terminate_handler f) throw();
41 extern void set_unexpected(unexpected_handler f) throw();
42 extern void terminate();
43 extern void unexpected();
44 extern bool uncaught_exception() throw();