1 #ifndef _GLIBMM_EXCEPTIONHANDLER_H
2 #define _GLIBMM_EXCEPTIONHANDLER_H
3 
4 /* exceptionhandler.h
5  *
6  * Copyright 2002 The gtkmm Development Team
7  *
8  * This library is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU Lesser General Public
10  * License as published by the Free Software Foundation; either
11  * version 2.1 of the License, or (at your option) any later version.
12  *
13  * This library is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16  * Lesser General Public License for more details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with this library.  If not, see <http://www.gnu.org/licenses/>.
20  */
21 
22 #include <glibmmconfig.h>
23 #include <sigc++/sigc++.h>
24 
25 namespace Glib
26 {
27 
28 /** Specify a slot to be called when an exception is thrown by a signal handler.
29  */
30 GLIBMM_API
31 sigc::connection add_exception_handler(const sigc::slot<void>& slot);
32 
33 #ifndef DOXYGEN_SHOULD_SKIP_THIS
34 // internal
35 GLIBMM_API
36 void exception_handlers_invoke() noexcept;
37 #endif // DOXYGEN_SHOULD_SKIP_THIS
38 
39 } // namespace Glib
40 
41 #endif /* _GLIBMM_EXCEPTIONHANDLER_H */
42