-rw-r--r-- | include/opkele/exception.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/opkele/exception.h b/include/opkele/exception.h index 5c8418e..33f89cc 100644 --- a/include/opkele/exception.h +++ b/include/opkele/exception.h | |||
@@ -312,51 +312,60 @@ namespace opkele { | |||
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 | /** | 333 | /** |
334 | * thrown while processing OpenID request in OP. Signifies invalid realm | 334 | * thrown while processing OpenID request in OP. Signifies invalid realm |
335 | */ | 335 | */ |
336 | class bad_realm : public exception { | 336 | class bad_realm : public exception { |
337 | public: | 337 | public: |
338 | bad_realm(OPKELE_E_PARS) | 338 | bad_realm(OPKELE_E_PARS) |
339 | : exception(OPKELE_E_CONS) { } | 339 | : exception(OPKELE_E_CONS) { } |
340 | }; | 340 | }; |
341 | 341 | ||
342 | /** | 342 | /** |
343 | * thrown when attempting to retrieve return_to of one-way request | 343 | * thrown when attempting to retrieve return_to of one-way request |
344 | */ | 344 | */ |
345 | class no_return_to : public exception { | 345 | class no_return_to : public exception { |
346 | public: | 346 | public: |
347 | no_return_to(OPKELE_E_PARS) | 347 | no_return_to(OPKELE_E_PARS) |
348 | : exception(OPKELE_E_CONS) { } | 348 | : exception(OPKELE_E_CONS) { } |
349 | }; | 349 | }; |
350 | 350 | ||
351 | /** | 351 | /** |
352 | * thrown when querying identity of non-identity related request | 352 | * thrown when querying identity of non-identity related request |
353 | */ | 353 | */ |
354 | class non_identity : public exception { | 354 | class non_identity : public exception { |
355 | public: | 355 | public: |
356 | non_identity(OPKELE_E_PARS) | 356 | non_identity(OPKELE_E_PARS) |
357 | : exception(OPKELE_E_CONS) { } | 357 | : exception(OPKELE_E_CONS) { } |
358 | }; | 358 | }; |
359 | 359 | ||
360 | /** | ||
361 | * thrown if return_to URL doesn't match realm | ||
362 | */ | ||
363 | class bad_return_to : public exception { | ||
364 | public: | ||
365 | bad_return_to(OPKELE_E_PARS) | ||
366 | : exception(OPKELE_E_CONS) { } | ||
367 | }; | ||
368 | |||
360 | } | 369 | } |
361 | 370 | ||
362 | #endif /* __OPKELE_EXCEPTION_H */ | 371 | #endif /* __OPKELE_EXCEPTION_H */ |