3 #include "cetlib_except/demangle.h" 4 #include "cetlib_except/exception.h" 15 exceptionCatcher(F func,
16 std::string
const& funcName[[gnu::unused]],
23 std::cerr <<
"OptionsHandler caught a cet::exception calling " << funcName
28 std::cerr <<
"OptionsHandler caught an std::exception calling " 32 catch (std::string&
s) {
33 std::cerr <<
"OptionsHandler caught a string exception calling " 37 catch (
char const* s) {
38 std::cerr <<
"OptionsHandler caught a string exception calling " 43 std::cerr <<
"OptionsHandler caught an unknown exception calling " 53 std::string
const thisClass(cet::demangle_symbol(
typeid(*this).name()));
54 return exceptionCatcher([&vm,
this] {
return doCheckOptions(vm); },
55 thisClass +
"::doCheckOptions()",
63 std::string
const thisClass(cet::demangle_symbol(
typeid(*this).name()));
64 return exceptionCatcher(
65 [&,
this] {
return doProcessOptions(vm, raw_config); },
66 thisClass +
"::doProcessOptions()",
int processOptions(bpo::variables_map const &vm, fhicl::intermediate_table &raw_config)
int checkOptions(bpo::variables_map const &vm)
cet::coded_exception< error, detail::translate > exception