[shibboleth-sp2] 88/119: Switch exception class, seems to fail on some gcc versions.

Ferenc Wágner wferi-guest at moszumanska.debian.org
Tue Jan 26 21:29:53 UTC 2016


This is an automated email from the git hooks/post-receive script.

wferi-guest pushed a commit to annotated tag 1.3.1
in repository shibboleth-sp2.

commit 1204ffffaf78e955121cc93d1d45e31af993d564
Author: Scott Cantor <cantor.2 at osu.edu>
Date:   Mon Oct 22 01:31:58 2007 +0000

    Switch exception class, seems to fail on some gcc versions.
---
 fastcgi/shibauthorizer.cpp |  2 +-
 fastcgi/shibresponder.cpp  | 10 +++++-----
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/fastcgi/shibauthorizer.cpp b/fastcgi/shibauthorizer.cpp
index 3d385c2..e7e4b24 100644
--- a/fastcgi/shibauthorizer.cpp
+++ b/fastcgi/shibauthorizer.cpp
@@ -103,7 +103,7 @@ public:
     }
 
     virtual string getPostData(void) {
-        throw exception("getPostData not implemented by FastCGI authorizer.");
+        throw runtime_error("getPostData not implemented by FastCGI authorizer.");
     }
 
     virtual void clearHeader(const string& name) {
diff --git a/fastcgi/shibresponder.cpp b/fastcgi/shibresponder.cpp
index f4d09b6..a03daff 100644
--- a/fastcgi/shibresponder.cpp
+++ b/fastcgi/shibresponder.cpp
@@ -120,23 +120,23 @@ public:
     }
 
     virtual void clearHeader(const string &name) {
-        throw exception("clearHeader not implemented by FastCGI responder.");
+        throw runtime_error("clearHeader not implemented by FastCGI responder.");
     }
   
     virtual void setHeader(const string &name, const string &value) {
-        throw exception("setHeader not implemented by FastCGI responder.");
+        throw runtime_error("setHeader not implemented by FastCGI responder.");
     }
 
     virtual string getHeader(const string &name) {
-        throw exception("getHeader not implemented by FastCGI responder.");
+        throw runtime_error("getHeader not implemented by FastCGI responder.");
     }
 
     virtual void setRemoteUser(const string &user) {
-        throw exception("setRemoteUser not implemented by FastCGI responder.");
+        throw runtime_error("setRemoteUser not implemented by FastCGI responder.");
     }
 
     virtual string getRemoteUser(void) {
-        throw exception("getRemoteUser not implemented by FastCGI responder.");
+        throw runtime_error("getRemoteUser not implemented by FastCGI responder.");
     }
 
     virtual void* sendPage(

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-shibboleth/shibboleth-sp2.git



More information about the Pkg-shibboleth-devel mailing list