2 * stdexcept.h - provides a stub version of <stdexcept>, which defines enough
3 * of the exceptions for the runtime to use.
13 exception(const exception&) throw();
14 exception& operator=(const exception&) throw();
16 virtual const char* what() const throw();
21 * Bad allocation exception. Thrown by ::operator new() if it fails.
23 class bad_alloc: public exception
27 bad_alloc(const bad_alloc&) throw();
28 bad_alloc& operator=(const bad_alloc&) throw();
30 virtual const char* what() const throw();
34 * Bad cast exception. Thrown by the __cxa_bad_cast() helper function.
36 class bad_cast: public exception {
39 bad_cast(const bad_cast&) throw();
40 bad_cast& operator=(const bad_cast&) throw();
42 virtual const char* what() const throw();
46 * Bad typeidexception. Thrown by the __cxa_bad_typeid() helper function.
48 class bad_typeid: public exception
52 bad_typeid(const bad_typeid &__rhs) throw();
53 virtual ~bad_typeid();
54 bad_typeid& operator=(const bad_typeid &__rhs) throw();
55 virtual const char* what() const throw();