GEOS  3.9.1dev
IllegalStateException.h
Go to the documentation of this file.
1 /**********************************************************************
2  *
3  * GEOS - Geometry Engine Open Source
4  * http://geos.osgeo.org
5  *
6  * Copyright (C) 2011 Sandro Santilli <strk@kbt.io>
7  *
8  * This is free software; you can redistribute and/or modify it under
9  * the terms of the GNU Lesser General Public Licence as published
10  * by the Free Software Foundation.
11  * See the COPYING file for more information.
12  *
13  **********************************************************************/
14 
15 #ifndef GEOS_UTIL_ILLEGALSTATEEXCEPTION_H
16 #define GEOS_UTIL_ILLEGALSTATEEXCEPTION_H
17 
18 #include <geos/export.h>
19 #include <string>
20 
22 
23 namespace geos {
24 namespace util { // geos::util
25 
28 public:
30  :
31  GEOSException("IllegalStateException", "")
32  {}
33 
34  IllegalStateException(const std::string& msg)
35  :
36  GEOSException("IllegalStateException", msg)
37  {}
38 
39  ~IllegalStateException() noexcept override {}
40 };
41 
42 } // namespace geos::util
43 } // namespace geos
44 
45 
46 #endif // GEOS_UTIL_ILLEGALSTATEEXCEPTION_H
#define GEOS_DLL
Definition: export.h:28
IllegalStateException(const std::string &msg)
Indicates an illegal state.
Basic namespace for all GEOS functionalities.
Base class for all GEOS exceptions.
Definition: GEOSException.h:38