summaryrefslogtreecommitdiffabout
path: root/include
Unidiff
Diffstat (limited to 'include') (more/less context) (ignore whitespace changes)
-rw-r--r--include/Makefile.am1
-rw-r--r--include/opkele/exception.h27
2 files changed, 28 insertions, 0 deletions
diff --git a/include/Makefile.am b/include/Makefile.am
index 50fcb62..37fb961 100644
--- a/include/Makefile.am
+++ b/include/Makefile.am
@@ -16,12 +16,13 @@ nobase_include_HEADERS = \
16 opkele/xserver.h \ 16 opkele/xserver.h \
17 opkele/uris.h \ 17 opkele/uris.h \
18 opkele/tr1-mem.h \ 18 opkele/tr1-mem.h \
19 opkele/basic_rp.h \ 19 opkele/basic_rp.h \
20 opkele/prequeue_rp.h \ 20 opkele/prequeue_rp.h \
21 opkele/iterator.h \ 21 opkele/iterator.h \
22 opkele/basic_op.h \
22 ${NODIST_HEADERS_} 23 ${NODIST_HEADERS_}
23 24
24noinst_HEADERS = \ 25noinst_HEADERS = \
25 opkele/data.h \ 26 opkele/data.h \
26 opkele/curl.h opkele/expat.h opkele/tidy.h \ 27 opkele/curl.h opkele/expat.h opkele/tidy.h \
27 opkele/util.h \ 28 opkele/util.h \
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
@@ -327,9 +327,36 @@ namespace opkele {
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 */