wrapLibraryManagerException.cc
Go to the documentation of this file.
2 #include "cetlib_except/exception.h"
3 
4 void
6  std::string const& item_type,
7  std::string const& libspec,
8  std::string const& release)
9 {
10  if (e.category() == "LogicError") {
11  // Re-throw.
12  throw;
13  } else {
14  // Wrap and throw.
15  throw exception("Configuration", std::string("Unknown") + item_type, e)
16  << item_type + " " << libspec << " with version " << release
17  << " was not registered.\n"
18  << "Perhaps your plugin type is misspelled "
19  << "or is not a plugin recognized by this\n"
20  << "system.\n";
21  }
22 }
std::string string
Definition: nybbler.cc:12
const double e
string release
Definition: conf.py:24
void wrapLibraryManagerException(cet::exception const &e, std::string const &item_type, std::string const &libspec, std::string const &release)
cet::coded_exception< error, detail::translate > exception
Definition: exception.h:33