|
|
|
|
|
|
|
|
catch(exception& e) { // Report any normal exceptions.
|
|
|
catch(exception& e) { // Report any normal exceptions.
|
|
|
cerr << "\n\nSNFMilterConfig Exception: " << e.what() << endl << endl;
|
|
|
cerr << "\n\nSNFMilterConfig Exception: " << e.what() << endl << endl;
|
|
|
RestoreFiles(&SnfMilterConfig);
|
|
|
RestoreFiles(&SnfMilterConfig);
|
|
|
|
|
|
return(-1);
|
|
|
}
|
|
|
}
|
|
|
catch (snfCFGmgr::LoadFailure) { // Error loading configuration file.
|
|
|
catch (snfCFGmgr::LoadFailure) { // Error loading configuration file.
|
|
|
cerr << "\n\nsnfCFGmgr Exception: Unable to load the configuration file "
|
|
|
cerr << "\n\nsnfCFGmgr Exception: Unable to load the configuration file "
|
|
|
<< SnfMilterConfig.GetConfigFileName() << endl << endl;
|
|
|
<< SnfMilterConfig.GetConfigFileName() << endl << endl;
|
|
|
RestoreFiles(&SnfMilterConfig);
|
|
|
RestoreFiles(&SnfMilterConfig);
|
|
|
|
|
|
return(-1);
|
|
|
}
|
|
|
}
|
|
|
catch(...) { // Report any unexpected exceptions.
|
|
|
catch(...) { // Report any unexpected exceptions.
|
|
|
cerr << "\n\nSNFMilterConfig Panic! Unknown Exception!" << endl << endl;
|
|
|
cerr << "\n\nSNFMilterConfig Panic! Unknown Exception!" << endl << endl;
|
|
|
RestoreFiles(&SnfMilterConfig);
|
|
|
RestoreFiles(&SnfMilterConfig);
|
|
|
|
|
|
return(-1);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
return 0; // Normally we return zero.
|
|
|
return 0; // Normally we return zero.
|