GEOS
3.4.2
|
00001 /********************************************************************** 00002 * 00003 * GEOS - Geometry Engine Open Source 00004 * http://geos.osgeo.org 00005 * 00006 * Copyright (C) 2005-2006 Refractions Research Inc. 00007 * Copyright (C) 2001-2002 Vivid Solutions Inc. 00008 * 00009 * This is free software; you can redistribute and/or modify it under 00010 * the terms of the GNU Lesser General Public Licence as published 00011 * by the Free Software Foundation. 00012 * See the COPYING file for more information. 00013 * 00014 ********************************************************************** 00015 * 00016 * Last port: io/ParseException.java rev. 1.13 (JTS-1.10) 00017 * 00018 **********************************************************************/ 00019 00020 #ifndef GEOS_IO_PARSEEXCEPTION_H 00021 #define GEOS_IO_PARSEEXCEPTION_H 00022 00023 #include <geos/export.h> 00024 00025 #include <geos/util/GEOSException.h> 00026 00027 namespace geos { 00028 namespace io { 00029 00034 class GEOS_DLL ParseException : public util::GEOSException 00035 { 00036 00037 public: 00038 00039 ParseException(); 00040 00041 ParseException(const std::string& msg); 00042 00043 ParseException(const std::string& msg, const std::string& var); 00044 00045 ParseException(const std::string& msg, double num); 00046 00047 ~ParseException() throw() {} 00048 00049 private: 00050 static std::string stringify(double num); 00051 }; 00052 00053 } // namespace io 00054 } // namespace geos 00055 00056 #endif // #ifndef GEOS_IO_PARSEEXCEPTION_H