author | Michael Krelin <hacker@klever.net> | 2008-01-04 18:41:52 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2008-01-04 18:41:52 (UTC) |
commit | 8e3f9231383194d94e41032b64d87cc6ef1c2ee8 (patch) (unidiff) | |
tree | 63e9bfa12430e71d322a22784319d3fdb0e25a2b | |
parent | 14f6295f3ffb22848d848265042b088a28451677 (diff) | |
download | libopkele-8e3f9231383194d94e41032b64d87cc6ef1c2ee8.zip libopkele-8e3f9231383194d94e41032b64d87cc6ef1c2ee8.tar.gz libopkele-8e3f9231383194d94e41032b64d87cc6ef1c2ee8.tar.bz2 |
exception specializations
Signed-off-by: Michael Krelin <hacker@klever.net>
-rw-r--r-- | include/opkele/exception.h | 30 |
1 files changed, 29 insertions, 1 deletions
diff --git a/include/opkele/exception.h b/include/opkele/exception.h index d003ce4..c200a13 100644 --- a/include/opkele/exception.h +++ b/include/opkele/exception.h | |||
@@ -163,3 +163,3 @@ namespace opkele { | |||
163 | string setup_url; | 163 | string setup_url; |
164 | id_res_setup(OPKELE_E_PARS,const string& su) | 164 | id_res_setup(OPKELE_E_PARS,const string& su="") |
165 | : id_res_failed(OPKELE_E_CONS), setup_url(su) { } | 165 | : id_res_failed(OPKELE_E_CONS), setup_url(su) { } |
@@ -204,2 +204,20 @@ namespace opkele { | |||
204 | /** | 204 | /** |
205 | * thrown if return_to didn't pass verification | ||
206 | */ | ||
207 | class id_res_bad_return_to : public id_res_failed { | ||
208 | public: | ||
209 | id_res_bad_return_to(OPKELE_E_PARS) | ||
210 | : id_res_failed(OPKELE_E_CONS) { } | ||
211 | }; | ||
212 | |||
213 | /** | ||
214 | * thrown if OP isn't authorized to make an assertion | ||
215 | */ | ||
216 | class id_res_unauthorized : public id_res_failed { | ||
217 | public: | ||
218 | id_res_unauthorized(OPKELE_E_PARS) | ||
219 | : id_res_failed(OPKELE_E_CONS) { } | ||
220 | }; | ||
221 | |||
222 | /** | ||
205 | * openssl malfunction occured | 223 | * openssl malfunction occured |
@@ -274,2 +292,12 @@ namespace opkele { | |||
274 | 292 | ||
293 | /** | ||
294 | * thrown in case of unsupported parameter encountered (e.g. unsupported | ||
295 | * association type). | ||
296 | */ | ||
297 | class unsupported : public exception { | ||
298 | public: | ||
299 | unsupported(OPKELE_E_PARS) | ||
300 | : exception(OPKELE_E_CONS) { } | ||
301 | }; | ||
302 | |||
275 | } | 303 | } |