00001 /*************************************************************************** 00002 glexception.h - description 00003 ------------------- 00004 begin : Thu Jul 3 2003 00005 copyright : (C) 2003 by Jacques Gasselin de Richebourg 00006 email : jacquesgasselin@hotmail.com 00007 ***************************************************************************/ 00008 00009 /*************************************************************************** 00010 * * 00011 * This program is free software; you can redistribute it and/or modify * 00012 * it under the terms of the GNU Lesser General Public License as published by * 00013 * the Free Software Foundation; either version 2 of the License, or * 00014 * (at your option) any later version. * 00015 * * 00016 ***************************************************************************/ 00017 00018 #ifndef GLEXCEPTION_H 00019 #define GLEXCEPTION_H 00020 00021 #include <exception> 00022 #include <ostream> 00023 00028 class GLException 00029 { 00030 std::string message; 00031 public: 00032 GLException(std::string); 00033 ~GLException(); 00034 void print(std::ostream&); 00035 }; 00036 00037 #endif