-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 | |||
@@ -31,14 +31,23 @@ namespace kingate { | |||
31 | */ | 31 | */ |
32 | class exception_notfound : public exception { | 32 | class exception_notfound : public exception { |
33 | public: | 33 | public: |
34 | explicit exception_notfound(const string& w) | 34 | explicit exception_notfound(const string& w) |
35 | : exception(w) { } | 35 | : exception(w) { } |
36 | exception_notfound(const string& fi,const string& fu,int l,const string& w) | 36 | exception_notfound(const string& fi,const string& fu,int l,const string& w) |
37 | : exception(fi,fu,l,w) { } | 37 | : exception(fi,fu,l,w) { } |
38 | }; | 38 | }; |
39 | |||
40 | /** | ||
41 | * Thrown in case of unexpected server behaviour. | ||
42 | */ | ||
43 | class server_error : public exception { | ||
44 | public: | ||
45 | server_error(const string& fi,const string& fu,int l,const string& w) | ||
46 | : exception(fi,fu,l,w) { } | ||
47 | }; | ||
39 | } | 48 | } |
40 | 49 | ||
41 | #endif /* __KINGATE_EXCEPTION_H */ | 50 | #endif /* __KINGATE_EXCEPTION_H */ |
42 | /* | 51 | /* |
43 | * vim:set ft=cpp: | 52 | * vim:set ft=cpp: |
44 | */ | 53 | */ |