00001 /*************************************************************************** 00002 qgsexception.h 00003 ------------------- 00004 begin : August 31, 2004 00005 copyright : (C) 2004 by Mark Coletti 00006 email : mcoletti at gmail.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 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 /* $Id$ */ 00018 #ifndef QGSEXCEPTION_H 00019 #define QGSEXCEPTION_H 00020 00021 #include <QString> 00022 00026 class CORE_EXPORT QgsException 00027 { 00028 public: 00029 QgsException( QString const & what ) 00030 : what_( what ) 00031 {} 00032 00033 virtual ~QgsException() throw() 00034 {} 00035 00036 QString what() const throw() 00037 { 00038 return what_; 00039 } 00040 00041 private: 00042 00044 QString what_; 00045 00046 }; // class QgsException 00047 00048 00049 #endif