3 #include "cetlib_except/demangle.h" 4 #include "cetlib_except/exception.h" 15 exceptionCatcher(F
func,
23 std::cerr <<
"OptionsHandler caught a cet::exception calling " << funcName
28 std::cerr <<
"OptionsHandler caught an std::exception calling " 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(
66 thisClass +
"::doProcessOptions()",
int processOptions(bpo::variables_map const &vm, fhicl::intermediate_table &raw_config)
virtual int doCheckOptions(bpo::variables_map const &vm)=0
int checkOptions(bpo::variables_map const &vm)
virtual int doProcessOptions(bpo::variables_map const &vm, fhicl::intermediate_table &raw_config)=0
cet::coded_exception< error, detail::translate > exception