1 #ifndef _GLIBMM_EXCEPTION_H 2 #define _GLIBMM_EXCEPTION_H 3 4 /* exception.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 <glibmm/ustring.h> 23 24 namespace Glib 25 { 26 27 class GLIBMM_API Exception 28 { 29 public: 30 virtual ~Exception() noexcept = 0; 31 virtual Glib::ustring what() const = 0; 32 }; 33 34 } // namespace Glib 35 36 #endif /* _GLIBMM_EXCEPTION_H */ 37