/src/geos/include/geos/util/AssertionFailedException.h
Line | Count | Source |
1 | | /********************************************************************** |
2 | | * |
3 | | * GEOS - Geometry Engine Open Source |
4 | | * http://geos.osgeo.org |
5 | | * |
6 | | * Copyright (C) 2001-2002 Vivid Solutions Inc. |
7 | | * Copyright (C) 2006 Refractions Research Inc. |
8 | | * |
9 | | * This is free software; you can redistribute and/or modify it under |
10 | | * the terms of the GNU Lesser General Public Licence as published |
11 | | * by the Free Software Foundation. |
12 | | * See the COPYING file for more information. |
13 | | * |
14 | | **********************************************************************/ |
15 | | |
16 | | #pragma once |
17 | | |
18 | | #include <geos/export.h> |
19 | | #include <string> |
20 | | |
21 | | #include <geos/util/GEOSException.h> |
22 | | |
23 | | namespace geos { |
24 | | namespace util { // geos.util |
25 | | |
26 | | /** \class AssertionFailedException util.h geos.h |
27 | | * \brief Indicates a bug in GEOS code. |
28 | | */ |
29 | | class GEOS_DLL AssertionFailedException: public GEOSException { |
30 | | |
31 | | public: |
32 | | |
33 | | AssertionFailedException() |
34 | | : |
35 | 0 | GEOSException("AssertionFailedException", "") |
36 | 0 | {} |
37 | | |
38 | | AssertionFailedException(const std::string& msg) |
39 | | : |
40 | 6.73k | GEOSException("AssertionFailedException", msg) |
41 | 6.73k | {} |
42 | | |
43 | 0 | ~AssertionFailedException() noexcept override {} |
44 | | }; |
45 | | |
46 | | } // namespace geos.util |
47 | | } // namespace geos |
48 | | |