summaryrefslogtreecommitdiffabout
path: root/include/opkele/exception.h
authorMichael Krelin <hacker@klever.net>2008-02-02 11:40:56 (UTC)
committer Michael Krelin <hacker@klever.net>2008-02-02 11:40:56 (UTC)
commit4efb668baed49ede14846c3cdac31cc561451cd1 (patch) (unidiff)
tree47f3c6570c25f083f1ff56831fc1b8c8d84af59e /include/opkele/exception.h
parentb7ce9a84f0775eb24f0a27d3816bf57b774a2927 (diff)
downloadlibopkele-4efb668baed49ede14846c3cdac31cc561451cd1.zip
libopkele-4efb668baed49ede14846c3cdac31cc561451cd1.tar.gz
libopkele-4efb668baed49ede14846c3cdac31cc561451cd1.tar.bz2
first rough cut on OP 2.0 implementation
Signed-off-by: Michael Krelin <hacker@klever.net>
Diffstat (limited to 'include/opkele/exception.h') (more/less context) (ignore whitespace changes)
-rw-r--r--include/opkele/exception.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/include/opkele/exception.h b/include/opkele/exception.h
index ccb39d9..5c8418e 100644
--- a/include/opkele/exception.h
+++ b/include/opkele/exception.h
@@ -309,27 +309,54 @@ namespace opkele {
309 public: 309 public:
310 unsupported(OPKELE_E_PARS) 310 unsupported(OPKELE_E_PARS)
311 : exception(OPKELE_E_CONS) { } 311 : exception(OPKELE_E_CONS) { }
312 }; 312 };
313 313
314 /** 314 /**
315 * thrown by associations store related functions in case of dumb RP. 315 * thrown by associations store related functions in case of dumb RP.
316 */ 316 */
317 class dumb_RP : public exception { 317 class dumb_RP : public exception {
318 public: 318 public:
319 dumb_RP(OPKELE_E_PARS) 319 dumb_RP(OPKELE_E_PARS)
320 : exception(OPKELE_E_CONS) { } 320 : exception(OPKELE_E_CONS) { }
321 }; 321 };
322 322
323 /** 323 /**
324 * thrown by endpoint-queue related function if endpoint is being 324 * thrown by endpoint-queue related function if endpoint is being
325 * accessed but there's no endpoint available. 325 * accessed but there's no endpoint available.
326 */ 326 */
327 class no_endpoint : public exception { 327 class no_endpoint : public exception {
328 public: 328 public:
329 no_endpoint(OPKELE_E_PARS) 329 no_endpoint(OPKELE_E_PARS)
330 : exception(OPKELE_E_CONS) { } 330 : exception(OPKELE_E_CONS) { }
331 }; 331 };
332 332
333 /**
334 * thrown while processing OpenID request in OP. Signifies invalid realm
335 */
336 class bad_realm : public exception {
337 public:
338 bad_realm(OPKELE_E_PARS)
339 : exception(OPKELE_E_CONS) { }
340 };
341
342 /**
343 * thrown when attempting to retrieve return_to of one-way request
344 */
345 class no_return_to : public exception {
346 public:
347 no_return_to(OPKELE_E_PARS)
348 : exception(OPKELE_E_CONS) { }
349 };
350
351 /**
352 * thrown when querying identity of non-identity related request
353 */
354 class non_identity : public exception {
355 public:
356 non_identity(OPKELE_E_PARS)
357 : exception(OPKELE_E_CONS) { }
358 };
359
333} 360}
334 361
335#endif /* __OPKELE_EXCEPTION_H */ 362#endif /* __OPKELE_EXCEPTION_H */