summaryrefslogtreecommitdiffabout
path: root/include/opkele/exception.h
authorMichael Krelin <hacker@klever.net>2007-12-09 17:22:06 (UTC)
committer Michael Krelin <hacker@klever.net>2007-12-09 22:08:24 (UTC)
commitc34adc6e274c3dbb63af99ca566000e7d218244c (patch) (unidiff)
tree705624c208deb4eaf8d07c119a883e6f4f35236e /include/opkele/exception.h
parent60fdaff7888b455b4d07eadc905cefd20f1ddd3c (diff)
downloadlibopkele-c34adc6e274c3dbb63af99ca566000e7d218244c.zip
libopkele-c34adc6e274c3dbb63af99ca566000e7d218244c.tar.gz
libopkele-c34adc6e274c3dbb63af99ca566000e7d218244c.tar.bz2
reworked identity resolution and service discovery
The discovery, which does both XRDS-based (Yadis, XRI, for XRI, using proxy) and HTML-based search, now returns results in opkele:idiscovery_t structure. It uses expat-based parser idigger_t, which itself is not exposed via any header files, but hidden in lib/discovery.cc, the discovery testing program is renamed from openid_resolve to idiscover. 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.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/include/opkele/exception.h b/include/opkele/exception.h
index 753a818..a654d59 100644
--- a/include/opkele/exception.h
+++ b/include/opkele/exception.h
@@ -200,12 +200,31 @@ namespace opkele {
200 exception_curl(OPKELE_E_PARS); 200 exception_curl(OPKELE_E_PARS);
201 exception_curl(OPKELE_E_PARS,CURLcode e); 201 exception_curl(OPKELE_E_PARS,CURLcode e);
202 ~exception_curl() throw() { } 202 ~exception_curl() throw() { }
203 }; 203 };
204 204
205 /** 205 /**
206 * exception thrown in case of failed discovery
207 */
208 class failed_discovery : public exception {
209 public:
210 failed_discovery(OPKELE_E_PARS)
211 : exception(OPKELE_E_CONS) { }
212 };
213
214 /**
215 * unsuccessfull xri resolution
216 */
217 class failed_xri_resolution : public failed_discovery {
218 public:
219 long _code;
220 failed_xri_resolution(OPKELE_E_PARS,long _c=-1)
221 : failed_discovery(OPKELE_E_CONS), _code(_c) { }
222 };
223
224 /**
206 * not implemented (think pure virtual) member function executed, signfies 225 * not implemented (think pure virtual) member function executed, signfies
207 * programmer error 226 * programmer error
208 */ 227 */
209 class not_implemented : public exception { 228 class not_implemented : public exception {
210 public: 229 public:
211 not_implemented(OPKELE_E_PARS) 230 not_implemented(OPKELE_E_PARS)