Quantum GIS API Documentation  1.7.5-Wroclaw
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
qgsexception.h
Go to the documentation of this file.
1 /***************************************************************************
2  qgsexception.h
3  -------------------
4  begin : August 31, 2004
5  copyright : (C) 2004 by Mark Coletti
6  email : mcoletti at gmail.com
7 ***************************************************************************/
8 
9 /***************************************************************************
10  * *
11  * This program is free software; you can redistribute it and/or modify *
12  * it under the terms of the GNU General Public License as published by *
13  * the Free Software Foundation; either version 2 of the License, or *
14  * (at your option) any later version. *
15  * *
16  ***************************************************************************/
17 /* $Id$ */
18 #ifndef QGSEXCEPTION_H
19 #define QGSEXCEPTION_H
20 
21 #include <QString>
22 
26 class CORE_EXPORT QgsException
27 {
28  public:
29  QgsException( QString const & what )
30  : what_( what )
31  {}
32 
33  virtual ~QgsException() throw()
34  {}
35 
36  QString what() const throw()
37  {
38  return what_;
39  }
40 
41  private:
42 
44  QString what_;
45 
46 }; // class QgsException
47 
48 
49 #endif