QGIS API Documentation  2.99.0-Master (a18066b)
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 #ifndef QGSEXCEPTION_H
18 #define QGSEXCEPTION_H
19 
20 #include <QString>
21 
22 #include "qgis_core.h"
23 
27 class CORE_EXPORT QgsException
28 {
29  public:
30  QgsException( QString const & what )
31  : what_( what )
32  {}
33 
34  virtual ~QgsException() throw()
35  {}
36 
38  QString what() const throw()
39  {
40  return what_;
41  }
42 
43  private:
44 
46  QString what_;
47 
48 }; // class QgsException
49 
50 
51 #endif
QString what() const
Definition: qgsexception.h:38
virtual ~QgsException()
Definition: qgsexception.h:34
Defines a qgis exception class.
Definition: qgsexception.h:27
QgsException(QString const &what)
Definition: qgsexception.h:30