1 // Exception Handling support header for -*- C++ -*-
2 // Copyright (C) 1995, 1996 Free Software Foundation
7 #pragma interface "exception"
18 virtual ~exception () { }
19 virtual const char* what () const;
22 class bad_exception : public exception {
25 virtual ~bad_exception () { }
28 typedef void (*terminate_handler) ();
29 typedef void (*unexpected_handler) ();
31 terminate_handler set_terminate (terminate_handler);
32 void terminate (void);
33 unexpected_handler set_unexpected (unexpected_handler);
34 void unexpected (void);
35 bool uncaught_exception ();