# define strcasecmp stricmp
#endif
-using namespace std;
-using namespace saml;
-using namespace shibboleth;
-using namespace shibtarget;
using namespace shibtarget::logging;
+using namespace shibtarget;
+using namespace shibboleth;
+using namespace saml;
+using namespace std;
namespace shibtarget {
class ShibTargetPriv
catch (SAMLException& e) {
mlp.insert(e);
}
-#ifndef _DEBUG
- catch (...) {
- mlp.insert("errorText", "Caught an unknown exception.");
+ catch (exception& e) {
+ mlp.insert("errorText", e.what());
}
-#endif
// If we get here then we've got an error.
mlp.insert("errorType", procState);
catch (SAMLException& e) {
mlp.insert(e);
}
-#ifndef _DEBUG
- catch (...) {
- mlp.insert("errorText", "Caught an unknown exception.");
+ catch (exception& e) {
+ mlp.insert("errorText", e.what());
}
-#endif
// If we get here then we've got an error.
mlp.insert("errorType", procState);
catch (SAMLException& e) {
mlp.insert(e);
}
-#ifndef _DEBUG
- catch (...) {
- mlp.insert("errorText", "Caught an unknown exception.");
+ catch (exception& e) {
+ mlp.insert("errorText", e.what());
}
-#endif
// If we get here then we've got an error.
mlp.insert("errorType", procState);
catch (SAMLException& e) {
mlp.insert(e);
}
-#ifndef _DEBUG
- catch (...) {
- mlp.insert("errorText", "Caught an unknown exception.");
+ catch (exception& e) {
+ mlp.insert("errorText", e.what());
}
-#endif
// If we get here then we've got an error.
mlp.insert("errorType", procState);