CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
exceptionContext.cc
Go to the documentation of this file.
6 
7 #include <ostream>
8 
9 namespace edm {
10 
12  ESModuleCallingContext const* imcc = &mcc;
13  while (true) {
14  std::ostringstream iost;
16  iost << "Prefetching for EventSetup module ";
17  } else {
18  iost << "Calling method for EventSetup module ";
19  }
20  iost << imcc->componentDescription()->type_ << "/'" << imcc->componentDescription()->label_ << "'";
21 
22  ex.addContext(iost.str());
23  if (imcc->type() != ESParentContext::Type::kESModule) {
24  break;
25  }
26  imcc = imcc->esmoduleCallingContext();
27  }
29  }
30 } // namespace edm
void exceptionContext(cms::Exception &, ESModuleCallingContext const &)
ModuleCallingContext const * moduleCallingContext() const
ESModuleCallingContext const * esmoduleCallingContext() const
edm::eventsetup::ComponentDescription const * componentDescription() const
void addContext(std::string const &context)
Definition: Exception.cc:165