1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- #ifndef _LINUX_EXCEPTION_
- #define _LINUX_EXCEPTION_
- namespace std
- {
- class exception
- {
- public:
- exception() throw();
- exception(const exception&) throw();
- exception& operator=(const exception&) throw();
- virtual ~exception();
- virtual const char* what() const throw();
- };
-
- class bad_alloc: public exception
- {
- public:
- bad_alloc() throw();
- bad_alloc(const bad_alloc&) throw();
- bad_alloc& operator=(const bad_alloc&) throw();
- ~bad_alloc();
- virtual const char* what() const throw();
- };
- class bad_exception : public exception
- {
- public:
- bad_exception() throw();
- virtual ~bad_exception() throw();
- virtual const char* what() const throw();
- };
- bool uncaught_exception() throw();
-
- typedef void (*unexpected_handler)();
- unexpected_handler set_unexpected(unexpected_handler) throw();
- void unexpected();
- typedef void (*terminate_handler)();
- terminate_handler set_terminate(terminate_handler) throw();
- void terminate();
- }
- #endif
|