summaryrefslogtreecommitdiffabout
path: root/include
Side-by-side diff
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
@@ -6,27 +6,28 @@ nobase_include_HEADERS = \
opkele/opkele-config.h \
opkele/types.h \
opkele/association.h \
opkele/exception.h \
opkele/server.h \
opkele/consumer.h \
opkele/extension.h \
opkele/sreg.h \
opkele/extension_chain.h \
opkele/xconsumer.h \
opkele/xserver.h \
opkele/uris.h \
opkele/tr1-mem.h \
opkele/basic_rp.h \
opkele/prequeue_rp.h \
opkele/iterator.h \
+ opkele/basic_op.h \
${NODIST_HEADERS_}
noinst_HEADERS = \
opkele/data.h \
opkele/curl.h opkele/expat.h opkele/tidy.h \
opkele/util.h \
opkele/debug.h \
opkele/discovery.h
dist-hook:
rm -f $(addprefix ${distdir}/,${NODIST_HEADERS_})
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
@@ -317,19 +317,46 @@ namespace opkele {
class dumb_RP : public exception {
public:
dumb_RP(OPKELE_E_PARS)
: exception(OPKELE_E_CONS) { }
};
/**
* thrown by endpoint-queue related function if endpoint is being
* accessed but there's no endpoint available.
*/
class no_endpoint : public exception {
public:
no_endpoint(OPKELE_E_PARS)
: exception(OPKELE_E_CONS) { }
};
+ /**
+ * thrown while processing OpenID request in OP. Signifies invalid realm
+ */
+ class bad_realm : public exception {
+ public:
+ bad_realm(OPKELE_E_PARS)
+ : exception(OPKELE_E_CONS) { }
+ };
+
+ /**
+ * thrown when attempting to retrieve return_to of one-way request
+ */
+ class no_return_to : public exception {
+ public:
+ no_return_to(OPKELE_E_PARS)
+ : exception(OPKELE_E_CONS) { }
+ };
+
+ /**
+ * thrown when querying identity of non-identity related request
+ */
+ class non_identity : public exception {
+ public:
+ non_identity(OPKELE_E_PARS)
+ : exception(OPKELE_E_CONS) { }
+ };
+
}
#endif /* __OPKELE_EXCEPTION_H */