author | Michael Krelin <hacker@klever.net> | 2005-03-31 22:06:45 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2005-03-31 22:06:45 (UTC) |
commit | 0942697ed6ee058809db963f9cc3126f93139de2 (patch) (side-by-side diff) | |
tree | 2a5cdf5d200e302a6d6394e4a0193929dcb11bb0 /include/kingate/exception.h | |
parent | 5b50415afdb7b708874293ac7047b9b70de78e59 (diff) | |
download | kingate-0942697ed6ee058809db963f9cc3126f93139de2.zip kingate-0942697ed6ee058809db963f9cc3126f93139de2.tar.gz kingate-0942697ed6ee058809db963f9cc3126f93139de2.tar.bz2 |
1. renamed url_escape/unescape to encode/decode
2. introduced a number of wrappers for accessing meta-variables mentioned in RFC3875
3. bumped library version info
-rw-r--r-- | include/kingate/exception.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/kingate/exception.h b/include/kingate/exception.h index 6ebb361..85d89ea 100644 --- a/include/kingate/exception.h +++ b/include/kingate/exception.h @@ -1,44 +1,53 @@ #ifndef __KINGATE_EXCEPTION_H #define __KINGATE_EXCEPTION_H #include <stdexcept> #include <konforka/exception.h> /** * @file * @brief The kingate-specific exceptions. */ /** * @brief the main kingate namespace. */ namespace kingate { using namespace std; /** * The base for kingate-specific exception. */ class exception : public konforka::exception { public: explicit exception(const string& w) : konforka::exception(NOCODEPOINT,w) { } exception(const string& fi,const string& fu,int l,const string &w) : konforka::exception(fi,fu,l,w) { } }; /** * Thrown if the specified variable or parameter wasn't found. */ class exception_notfound : public exception { public: explicit exception_notfound(const string& w) : exception(w) { } exception_notfound(const string& fi,const string& fu,int l,const string& w) : exception(fi,fu,l,w) { } }; + + /** + * Thrown in case of unexpected server behaviour. + */ + class server_error : public exception { + public: + server_error(const string& fi,const string& fu,int l,const string& w) + : exception(fi,fu,l,w) { } + }; } #endif /* __KINGATE_EXCEPTION_H */ /* * vim:set ft=cpp: */ |