summaryrefslogtreecommitdiffabout
path: root/include/opkele
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) (side-by-side diff)
tree47f3c6570c25f083f1ff56831fc1b8c8d84af59e /include/opkele
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') (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
@@ -285,51 +285,78 @@ namespace opkele {
/**
* not implemented (think pure virtual) member function executed, signfies
* programmer error
*/
class not_implemented : public exception {
public:
not_implemented(OPKELE_E_PARS)
: exception(OPKELE_E_CONS) { }
};
/**
* internal error, indicates internal libopkele problem
*/
class internal_error : public exception {
public:
internal_error(OPKELE_E_PARS)
: exception(OPKELE_E_CONS) { }
};
/**
* thrown in case of unsupported parameter encountered (e.g. unsupported
* association type).
*/
class unsupported : public exception {
public:
unsupported(OPKELE_E_PARS)
: exception(OPKELE_E_CONS) { }
};
/**
* thrown by associations store related functions in case of dumb RP.
*/
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 */