00001 /* Copyright (C) 2005 The cairomm Development Team 00002 * 00003 * This library is free software; you can redistribute it and/or 00004 * modify it under the terms of the GNU Library General Public 00005 * License as published by the Free Software Foundation; either 00006 * version 2 of the License, or (at your option) any later version. 00007 * 00008 * This library is distributed in the hope that it will be useful, 00009 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00010 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00011 * Library General Public License for more details. 00012 * 00013 * You should have received a copy of the GNU Library General Public 00014 * License along with this library; if not, write to the Free Software 00015 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 00016 * 02110-1301, USA. 00017 */ 00018 00019 #ifndef __CAIRO_EXCEPTION_H 00020 #define __CAIRO_EXCEPTION_H 00021 00022 #include <cairomm/enums.h> 00023 #include <stdexcept> 00024 00025 namespace Cairo 00026 { 00027 00030 class logic_error: public std::logic_error 00031 { 00032 public: 00033 explicit logic_error(ErrorStatus status); 00034 virtual ~logic_error() throw(); 00035 00036 //virtual const char* what() const throw(); 00037 00038 private: 00039 ErrorStatus m_status; 00040 }; 00041 00042 } // namespace Cairo 00043 00044 #endif // __CAIRO_EXCEPTION_H 00045 00046 // vim: ts=2 sw=2 et