GEOS  3.14.0dev
ParseException.h
1 /**********************************************************************
2  *
3  * GEOS - Geometry Engine Open Source
4  * http://geos.osgeo.org
5  *
6  * Copyright (C) 2005-2006 Refractions Research Inc.
7  * Copyright (C) 2001-2002 Vivid Solutions 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  * Last port: io/ParseException.java rev. 1.13 (JTS-1.10)
17  *
18  **********************************************************************/
19 
20 #pragma once
21 
22 #include <geos/export.h>
23 
24 #include <geos/util/GEOSException.h>
25 
26 namespace geos {
27 namespace io {
28 
33 class GEOS_DLL ParseException : public util::GEOSException {
34 
35 public:
36 
38 
39  ParseException(const std::string& msg);
40 
41  ParseException(const std::string& msg, const std::string& var);
42 
43  ParseException(const std::string& msg, double num);
44 
45  ~ParseException() noexcept override {}
46 
47 private:
48  static std::string stringify(double num);
49 };
50 
51 } // namespace io
52 } // namespace geos
53 
Notifies a parsing error.
Definition: ParseException.h:33
Base class for all GEOS exceptions.
Definition: GEOSException.h:37
Basic namespace for all GEOS functionalities.
Definition: Angle.h:25