GEOS  3.9.1dev
ParseException.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) 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 #ifndef GEOS_IO_PARSEEXCEPTION_H
21 #define GEOS_IO_PARSEEXCEPTION_H
22 
23 #include <geos/export.h>
24 
26 
27 namespace geos {
28 namespace io {
29 
35 
36 public:
37 
39 
40  ParseException(const std::string& msg);
41 
42  ParseException(const std::string& msg, const std::string& var);
43 
44  ParseException(const std::string& msg, double num);
45 
46  ~ParseException() noexcept override {}
47 
48 private:
49  static std::string stringify(double num);
50 };
51 
52 } // namespace io
53 } // namespace geos
54 
55 #endif // #ifndef GEOS_IO_PARSEEXCEPTION_H
#define GEOS_DLL
Definition: export.h:28
~ParseException() noexceptoverride
Notifies a parsing error.
Basic namespace for all GEOS functionalities.
Base class for all GEOS exceptions.
Definition: GEOSException.h:38