00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
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 }
00060
00061 #endif