00001 /********************************************************************** 00002 * $Id: ParseException.h 2556 2009-06-06 22:22:28Z strk $ 00003 * 00004 * GEOS - Geometry Engine Open Source 00005 * http://geos.refractions.net 00006 * 00007 * Copyright (C) 2005-2006 Refractions Research Inc. 00008 * Copyright (C) 2001-2002 Vivid Solutions Inc. 00009 * 00010 * This is free software; you can redistribute and/or modify it under 00011 * the terms of the GNU Lesser General Public Licence as published 00012 * by the Free Software Foundation. 00013 * See the COPYING file for more information. 00014 * 00015 **********************************************************************/ 00016 00017 #ifndef GEOS_IO_PARSEEXCEPTION_H 00018 #define GEOS_IO_PARSEEXCEPTION_H 00019 00020 #include <geos/export.h> 00021 00022 #include <geos/util/GEOSException.h> 00023 00024 namespace geos { 00025 namespace io { 00026 00031 class GEOS_DLL ParseException : public util::GEOSException 00032 { 00033 00034 public: 00035 00036 ParseException(); 00037 00038 ParseException(const std::string& msg); 00039 00040 ParseException(const std::string& msg, const std::string& var); 00041 00042 ParseException(const std::string& msg, double num); 00043 00044 ~ParseException() throw() {}; 00045 00046 private: 00047 static std::string stringify(double num); 00048 }; 00049 00050 } // namespace io 00051 } // namespace geos 00052 00053 #endif // #ifndef GEOS_IO_PARSEEXCEPTION_H 00054 00055 /********************************************************************** 00056 * $Log$ 00057 * Revision 1.2 2006/04/04 08:16:46 strk 00058 * Changed GEOSException hierarchy to be derived from std::runtime_exception. 00059 * Removed the GEOSException::toString redundant method (use ::what() instead) 00060 * 00061 * Revision 1.1 2006/03/20 18:18:14 strk 00062 * io.h header split 00063 * 00064 **********************************************************************/
1.4.4