QGIS API Documentation  2.3.0-Master
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties 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 #ifndef QGSEXCEPTION_H
18 #define QGSEXCEPTION_H
19 
20 #include <QString>
21 
25 class CORE_EXPORT QgsException
26 {
27  public:
28  QgsException( QString const & what )
29  : what_( what )
30  {}
31 
32  virtual ~QgsException() throw()
33  {}
34 
35  QString what() const throw()
36  {
37  return what_;
38  }
39 
40  private:
41 
43  QString what_;
44 
45 }; // class QgsException
46 
47 
48 #endif
QString what_
description of exception
Definition: qgsexception.h:43
virtual ~QgsException()
Definition: qgsexception.h:32
QString what() const
Definition: qgsexception.h:35
Defines a qgis exception class.
Definition: qgsexception.h:25
QgsException(QString const &what)
Definition: qgsexception.h:28