00001 /********************************************************************** 00002 * $Id: AssertionFailedException.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) 2001-2002 Vivid Solutions Inc. 00008 * Copyright (C) 2006 Refractions Research 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_UTIL_ASSERTIONFAILEDEXCEPTION_H 00018 #define GEOS_UTIL_ASSERTIONFAILEDEXCEPTION_H 00019 00020 #include <geos/export.h> 00021 #include <string> 00022 00023 #include <geos/util/GEOSException.h> 00024 00025 namespace geos { 00026 namespace util { // geos.util 00027 00031 class GEOS_DLL AssertionFailedException: public GEOSException { 00032 00033 public: 00034 00035 AssertionFailedException() 00036 : 00037 GEOSException("AssertionFailedException", "") 00038 {} 00039 00040 AssertionFailedException(const std::string& msg) 00041 : 00042 GEOSException("AssertionFailedException", msg) 00043 {} 00044 00045 ~AssertionFailedException() throw() {} 00046 }; 00047 00048 } // namespace geos.util 00049 } // namespace geos 00050 00051 00052 #endif // GEOS_UTIL_ASSERTIONFAILEDEXCEPTION_H 00053 00054 /********************************************************************** 00055 * $Log$ 00056 * Revision 1.1 2006/03/09 16:46:49 strk 00057 * geos::geom namespace definition, first pass at headers split 00058 * 00059 **********************************************************************/