Quantum GIS API Documentation  1.8
src/core/qgsexception.h
Go to the documentation of this file.
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 #ifndef QGSEXCEPTION_H
00018 #define QGSEXCEPTION_H
00019 
00020 #include <QString>
00021 
00025 class CORE_EXPORT QgsException
00026 {
00027   public:
00028     QgsException( QString const & what )
00029         : what_( what )
00030     {}
00031 
00032     virtual ~QgsException() throw()
00033     {}
00034 
00035     QString what() const throw()
00036     {
00037       return what_;
00038     }
00039 
00040   private:
00041 
00043     QString what_;
00044 
00045 }; // class QgsException
00046 
00047 
00048 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines