/src/geos/include/geos/util/IllegalStateException.h
Line | Count | Source |
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 | | #pragma once |
16 | | |
17 | | #include <geos/export.h> |
18 | | #include <string> |
19 | | |
20 | | #include <geos/util/GEOSException.h> |
21 | | |
22 | | namespace geos { |
23 | | namespace util { // geos::util |
24 | | |
25 | | /// Indicates an illegal state |
26 | | class GEOS_DLL IllegalStateException: public GEOSException { |
27 | | public: |
28 | | IllegalStateException() |
29 | | : |
30 | | GEOSException("IllegalStateException", "") |
31 | 0 | {} |
32 | | |
33 | | IllegalStateException(const std::string& msg) |
34 | | : |
35 | 0 | GEOSException("IllegalStateException", msg) |
36 | 0 | {} |
37 | | |
38 | 0 | ~IllegalStateException() noexcept override {} |
39 | | }; |
40 | | |
41 | | } // namespace geos::util |
42 | | } // namespace geos |