CMS 3D CMS Logo

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
ModuleCallingContext const * moduleCallingContext() const
void exceptionContext(cms::Exception &, ESModuleCallingContext const &)
ESModuleCallingContext const * esmoduleCallingContext() const
void addContext(std::string const &context)
Definition: Exception.cc:165
HLT enums.
edm::eventsetup::ComponentDescription const * componentDescription() const