ParseException.h

00001 /**********************************************************************
00002  * $Id: ParseException.h 1820 2006-09-06 16:54:23Z mloskot $
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/util/GEOSException.h>
00021 
00022 namespace geos {
00023 namespace io {
00024 
00029 class ParseException : public util::GEOSException
00030 {
00031 
00032 public:
00033 
00034         ParseException();
00035 
00036         ParseException(const std::string& msg);
00037 
00038         ParseException(const std::string& msg, const std::string& var);
00039 
00040         ParseException(const std::string& msg, double num);
00041 
00042         ~ParseException() throw() {};
00043 
00044 private:
00045         static std::string stringify(double num);
00046 };
00047 
00048 } // namespace io
00049 } // namespace geos
00050 
00051 #endif // #ifndef GEOS_IO_PARSEEXCEPTION_H
00052 
00053 /**********************************************************************
00054  * $Log$
00055  * Revision 1.2  2006/04/04 08:16:46  strk
00056  * Changed GEOSException hierarchy to be derived from std::runtime_exception.
00057  * Removed the GEOSException::toString redundant method (use ::what() instead)
00058  *
00059  * Revision 1.1  2006/03/20 18:18:14  strk
00060  * io.h header split
00061  *
00062  **********************************************************************/

Generated on Fri Mar 27 04:52:55 2009 for GEOS by  doxygen 1.5.4