Change exception class when config fails.
authorScott Cantor <cantor.2@osu.edu>
Fri, 8 Aug 2008 20:25:02 +0000 (20:25 +0000)
committerScott Cantor <cantor.2@osu.edu>
Fri, 8 Aug 2008 20:25:02 +0000 (20:25 +0000)
apache/mod_apache.cpp
fastcgi/shibauthorizer.cpp
fastcgi/shibresponder.cpp
isapi_shib/isapi_shib.cpp
nsapi_shib/nsapi_shib.cpp

index d44ec98..312486f 100644 (file)
@@ -1274,7 +1274,7 @@ extern "C" void shib_child_init(apr_pool_t* p, server_rec* s)
 
     try {
         if (!g_Config->instantiate(g_szSHIBConfig, true))
-            throw exception("unknown error");
+            throw runtime_error("unknown error");
     }
     catch (exception& ex) {
         ap_log_error(APLOG_MARK,APLOG_CRIT|APLOG_NOERRNO,SH_AP_R(s),ex.what());
index 00e6607..282dad9 100644 (file)
@@ -268,7 +268,7 @@ int main(void)
 \r
     try {\r
         if (!g_Config->instantiate(NULL, true))\r
-            throw exception("unknown error");\r
+            throw runtime_error("unknown error");\r
     }\r
     catch (exception& ex) {\r
         g_Config->term();\r
index 5df6dcd..3582833 100644 (file)
@@ -285,7 +285,7 @@ int main(void)
 \r
     try {\r
         if (!g_Config->instantiate(NULL, true))\r
-            throw exception("unknown error");\r
+            throw runtime_error("unknown error");\r
     }\r
     catch (exception& ex) {\r
         g_Config->term();\r
index 8f04cb3..71cb033 100644 (file)
@@ -172,7 +172,7 @@ extern "C" BOOL WINAPI GetFilterVersion(PHTTP_FILTER_VERSION pVer)
 
     try {
         if (!g_Config->instantiate(NULL, true))
-            throw exception("unknown error");
+            throw runtime_error("unknown error");
     }
     catch (exception& ex) {
         g_Config->term();
index 069591a..339ebc0 100644 (file)
@@ -142,7 +142,7 @@ extern "C" NSAPI_PUBLIC int nsapi_shib_init(pblock* pb, ::Session* sn, Request*
 
     try {
         if (!g_Config->instantiate(pblock_findval("shib-config",pb), true))
-            throw exception("unknown error");
+            throw runtime_error("unknown error");
     }
     catch (exception& ex) {
         pblock_nvinsert("error",ex.what(),pb);