GEOS 3.3.8

- Main Page
- Related Pages
- Namespaces
- Classes
- Files

- File List

ParseException.h
1 /**********************************************************************
2 * $Id: ParseException.h 2579 2009-06-15 14:03:52Z strk $
3 *
4 * GEOS - Geometry Engine Open Source
5 * http://geos.refractions.net
6 *
7 * Copyright (C) 2005-2006 Refractions Research Inc.
8 * Copyright (C) 2001-2002 Vivid Solutions Inc.
9 *
10 * This is free software; you can redistribute and/or modify it under
11 * the terms of the GNU Lesser General Public Licence as published
12 * by the Free Software Foundation.
13 * See the COPYING file for more information.
14 *
15 **********************************************************************
16 *
17 * Last port: io/ParseException.java rev. 1.13 (JTS-1.10)
18 *
19 **********************************************************************/
20
21 #ifndef GEOS_IO_PARSEEXCEPTION_H
22 #define GEOS_IO_PARSEEXCEPTION_H
23
24 #include <geos/export.h>
25
26 #include <geos/util/GEOSException.h>
27
28 namespace geos {
29 namespace io {
30
35 class GEOS_DLL ParseException : public util::GEOSException
36 {
37
38 public:
39
40 ParseException();
41
42 ParseException(const std::string& msg);
43
44 ParseException(const std::string& msg, const std::string& var);
45
46 ParseException(const std::string& msg, double num);
47
48 ~ParseException() throw() {};
49
50 private:
51 static std::string stringify(double num);
52 };
53
54 } // namespace io
55 } // namespace geos
56
57 #endif // #ifndef GEOS_IO_PARSEEXCEPTION_H
58
59 /**********************************************************************
60 * $Log$
61 * Revision 1.2 2006/04/04 08:16:46 strk
62 * Changed GEOSException hierarchy to be derived from std::runtime_exception.
63 * Removed the GEOSException::toString redundant method (use ::what() instead)
64 *
65 * Revision 1.1 2006/03/20 18:18:14 strk
66 * io.h header split
67 *
68 **********************************************************************/