Added a catch_all handler.
authorcantor <cantor@cb58f699-b61c-0410-a6fe-9272a202ed29>
Mon, 30 Jun 2003 01:14:57 +0000 (01:14 +0000)
committercantor <cantor@cb58f699-b61c-0410-a6fe-9272a202ed29>
Mon, 30 Jun 2003 01:14:57 +0000 (01:14 +0000)
git-svn-id: https://svn.middleware.georgetown.edu/cpp-sp/trunk@592 cb58f699-b61c-0410-a6fe-9272a202ed29

mod_shire/mod_shire.cpp

index 1759e77..85a9453 100644 (file)
@@ -684,9 +684,16 @@ extern "C" int shire_post_handler (request_rec* r)
     markupProcessor.insert ("errorDesc", "An error occurred while processing your request.");
     return shire_error_page (r, shireError.c_str(), markupProcessor);
   }
+  catch (...) {
+    ap_log_rerror(APLOG_MARK,APLOG_DEBUG|APLOG_NOERRNO,r,"shire_post_handler(): unexpected exception");
+  
+    markupProcessor.insert ("errorType", "SHIRE Processing Error");
+    markupProcessor.insert ("errorText", "Unexpected Exception");
+    markupProcessor.insert ("errorDesc", "An error occurred while processing your request.");
+    return shire_error_page (r, shireError.c_str(), markupProcessor);
+  }
 
-  ap_log_rerror(APLOG_MARK,APLOG_ERR|APLOG_NOERRNO,r,
-               "shire_post_handler() server error");
+  ap_log_rerror(APLOG_MARK,APLOG_ERR|APLOG_NOERRNO,r,"shire_post_handler() server error");
   return SERVER_ERROR;
 }