• Main Page
  • Related Pages
  • Namespaces
  • Classes
  • Files
  • File List

ParseException.h

00001 /**********************************************************************
00002  * $Id: ParseException.h 2579 2009-06-15 14:03:52Z 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  * Last port: io/ParseException.java rev. 1.13 (JTS-1.10)
00018  *
00019  **********************************************************************/
00020 
00021 #ifndef GEOS_IO_PARSEEXCEPTION_H
00022 #define GEOS_IO_PARSEEXCEPTION_H
00023 
00024 #include <geos/export.h>
00025 
00026 #include <geos/util/GEOSException.h>
00027 
00028 namespace geos {
00029 namespace io {
00030 
00035 class GEOS_DLL ParseException : public util::GEOSException
00036 {
00037 
00038 public:
00039 
00040         ParseException();
00041 
00042         ParseException(const std::string& msg);
00043 
00044         ParseException(const std::string& msg, const std::string& var);
00045 
00046         ParseException(const std::string& msg, double num);
00047 
00048         ~ParseException() throw() {};
00049 
00050 private:
00051         static std::string stringify(double num);
00052 };
00053 
00054 } // namespace io
00055 } // namespace geos
00056 
00057 #endif // #ifndef GEOS_IO_PARSEEXCEPTION_H
00058 
00059 /**********************************************************************
00060  * $Log$
00061  * Revision 1.2  2006/04/04 08:16:46  strk
00062  * Changed GEOSException hierarchy to be derived from std::runtime_exception.
00063  * Removed the GEOSException::toString redundant method (use ::what() instead)
00064  *
00065  * Revision 1.1  2006/03/20 18:18:14  strk
00066  * io.h header split
00067  *
00068  **********************************************************************/

Generated on Thu Jul 22 2010 for GEOS by  doxygen 1.7.1