Main Page   Class Hierarchy   Compound List   File List   Compound Members   Related Pages  

VMapExceptions.h

00001 /*****************************************************************************
00002  * Author:   Valient Gough <vgough@pobox.com>
00003  *
00004  *****************************************************************************
00005  * Copyright (c) 2001, Valient Gough
00006  *
00007  * This library is free software; you can distribute it and/or modify it under
00008  * the terms of the GNU Lesser General Public License (LGPL), as published by
00009  * the Free Software Foundation; either version 2.1 of the License, or (at your
00010  * option) any later version.
00011  *
00012  * This library is distributed in the hope that it will be useful, but WITHOUT
00013  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00014  * FITNESS FOR A PARTICULAR PURPOSE.  See the LGPL in the file COPYING for more
00015  * details.
00016  *
00017  */
00018 
00019 #ifndef _VMapExceptions_incl_
00020 #define _VMapExceptions_incl_
00021 
00022 
00023 #include <stdexcept>
00024 
00025 
00026 namespace rel
00027 {
00028 
00029 
00030     class VMapException : public std::exception
00031     {
00032         string _what;
00033     public:
00034         VMapException(const string &what) : _what(what) {}
00035         virtual const char *what() {return _what.c_str(); }
00036     };
00037 
00038     class VMap_unsupported : public VMapException
00039     {
00040     public:
00041         VMap_unsupported(const string &what) 
00042             : VMapException(what) {}
00043     };
00044 
00045     class VMap_notallowed : public VMapException
00046     {
00047     public:
00048         VMap_notallowed(const string &what) 
00049             : VMapException(what) {}
00050     };
00051 
00052     class VMap_argumentError : public VMapException
00053     {
00054     public:
00055         VMap_argumentError(const string &what)
00056             : VMapException(what) {}
00057     };
00058 
00059 } // namespace rel
00060 
00061 #endif

Generated at Sat Sep 22 02:20:00 2001 for librel by doxygen1.2.10 written by Dimitri van Heesch, © 1997-2001