1 // Exception Handling support header for -*- C++ -*-
2 // Copyright (C) 1995, 96-97, 1998 Free Software Foundation
7 #pragma interface "exception"
16 virtual ~exception () { }
17 virtual const char* what () const;
20 class bad_exception : public exception {
23 virtual ~bad_exception () { }
26 typedef void (*terminate_handler) ();
27 typedef void (*unexpected_handler) ();
29 terminate_handler set_terminate (terminate_handler);
30 void terminate () __attribute__ ((__noreturn__));
31 unexpected_handler set_unexpected (unexpected_handler);
32 void unexpected () __attribute__ ((__noreturn__));
33 bool uncaught_exception ();