From 61e6da06804f98d0cbb9d27eeb335351b3e05d4d Mon Sep 17 00:00:00 2001 From: Michael Krelin Date: Thu, 31 Jan 2008 23:54:44 +0000 Subject: fixed kingate_openid_message code in test area rethrow kingate's notfound exceptions as opkele ones. Signed-off-by: Michael Krelin --- (limited to 'test') diff --git a/test/kingate_openid_message.h b/test/kingate_openid_message.h index b3a2c9d..37dcdfa 100644 --- a/test/kingate_openid_message.h +++ b/test/kingate_openid_message.h @@ -90,8 +90,9 @@ class kingate_openid_message_t : public opkele::basic_openid_message { bool has_field(const string& n) const { return gw.has_param("openid."+n); } - const string& get_field(const string& n) const { - return gw.get_param("openid."+n); } + const string& get_field(const string& n) const try { + return gw.get_param("openid."+n); }catch(kingate::exception_notfound& nf) { + throw opkele::failed_lookup(OPKELE_CP_ nf.what()); } fields_iterator fields_begin() const { return -- cgit v0.9.0.2