GEOS: IllegalArgumentException.h Source File

- Main Page
- Namespaces
- Classes
- Files
- Related Pages

# IllegalArgumentException.h

    00001 /**********************************************************************
    00002  * $Id: IllegalArgumentException.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) 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_ILLEGALARGUMENTEXCEPTION_H
    00018 #define GEOS_UTIL_ILLEGALARGUMENTEXCEPTION_H
    00019
    00020 #include <string>
    00021
    00022 #include <geos/util/GEOSException.h>
    00023
    00024 namespace geos {
    00025 namespace util { // geos::util
    00026
    00034 class IllegalArgumentException: public GEOSException {
    00035 public:
    00036         IllegalArgumentException()
    00037                 :
    00038                 GEOSException("IllegalArgumentException", "")
    00039         {}
    00040
    00041         IllegalArgumentException(const std::string& msg)
    00042                 :
    00043                 GEOSException("IllegalArgumentException", msg)
    00044         {}
    00045
    00046         ~IllegalArgumentException() throw() {};
    00047 };
    00048
    00049 } // namespace geos::util
    00050 } // namespace geos
    00051
    00052
    00053 #endif // GEOS_UTIL_ILLEGALARGUMENTEXCEPTION_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/09 16:46:49  strk
    00062  * geos::geom namespace definition, first pass at headers split
    00063  *
    00064  **********************************************************************/