From: cantor Date: Sun, 21 Oct 2007 19:38:15 +0000 (+0000) Subject: Remove catch all handlers. X-Git-Tag: 2.4~707 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fsp.git;a=commitdiff_plain;h=c07d803effcb23bdadf24032e19763390950a912 Remove catch all handlers. git-svn-id: https://svn.middleware.georgetown.edu/cpp-sp/trunk@2546 cb58f699-b61c-0410-a6fe-9272a202ed29 --- diff --git a/shibsp/ServiceProvider.cpp b/shibsp/ServiceProvider.cpp index dd8ce3b..09d6a41 100644 --- a/shibsp/ServiceProvider.cpp +++ b/shibsp/ServiceProvider.cpp @@ -232,15 +232,6 @@ pair ServiceProvider::doAuthentication(SPRequest& request, bool handl tp.m_map["requestURL"] = targetURL.substr(0,targetURL.find('?')); return make_pair(true,sendError(request, app, "session", tp)); } -#ifndef _DEBUG - catch (...) { - TemplateParameters tp; - tp.m_map["errorType"] = "Unexpected Error"; - tp.m_map["errorText"] = "Caught an unknown exception."; - tp.m_map["requestURL"] = targetURL.substr(0,targetURL.find('?')); - return make_pair(true,sendError(request, app, "session", tp)); - } -#endif } pair ServiceProvider::doAuthorization(SPRequest& request) const @@ -310,15 +301,6 @@ pair ServiceProvider::doAuthorization(SPRequest& request) const tp.m_map["requestURL"] = targetURL.substr(0,targetURL.find('?')); return make_pair(true,sendError(request, app, "access", tp)); } -#ifndef _DEBUG - catch (...) { - TemplateParameters tp; - tp.m_map["errorType"] = "Unexpected Error"; - tp.m_map["errorText"] = "Caught an unknown exception."; - tp.m_map["requestURL"] = targetURL.substr(0,targetURL.find('?')); - return make_pair(true,sendError(request, app, "access", tp)); - } -#endif } pair ServiceProvider::doExport(SPRequest& request, bool requireSession) const @@ -438,15 +420,6 @@ pair ServiceProvider::doExport(SPRequest& request, bool requireSessio tp.m_map["requestURL"] = targetURL.substr(0,targetURL.find('?')); return make_pair(true,sendError(request, app, "session", tp)); } -#ifndef _DEBUG - catch (...) { - TemplateParameters tp; - tp.m_map["errorType"] = "Unexpected Error"; - tp.m_map["errorText"] = "Caught an unknown exception."; - tp.m_map["requestURL"] = targetURL.substr(0,targetURL.find('?')); - return make_pair(true,sendError(request, app, "session", tp)); - } -#endif } pair ServiceProvider::doHandler(SPRequest& request) const @@ -512,13 +485,4 @@ pair ServiceProvider::doHandler(SPRequest& request) const tp.m_map["requestURL"] = targetURL.substr(0,targetURL.find('?')); return make_pair(true,sendError(request, app, "session", tp, true)); } -#ifndef _DEBUG - catch (...) { - TemplateParameters tp; - tp.m_map["errorType"] = "Unexpected Error"; - tp.m_map["errorText"] = "Caught an unknown exception."; - tp.m_map["requestURL"] = targetURL.substr(0,targetURL.find('?')); - return make_pair(true,sendError(request, app, "session", tp, true)); - } -#endif }