CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes | Friends
cms::Exception Class Reference

#include <Exception.h>

Inheritance diagram for cms::Exception:
Clustering1DException cond::persistency::Exception DetLayerException edm::eventsetup::MakeDataException edm::eventsetup::NoDataExceptionBase edm::eventsetup::NoRecordException< T > edm::Exception edm::MultipleException edm::ProductDeletedException edm::UnknownModuleException edmNew::CapacityExaustedException LinPtException MeasurementDetException npstat::NpstatException popcon::Exception PropagationException RPCException StatisticsException StripClusterizerAlgorithm::InvalidChargeException TrajectoryStateException

Public Member Functions

void addAdditionalInfo (std::string const &info)
 
void addAdditionalInfo (char const *info)
 
void addContext (std::string const &context)
 
void addContext (char const *context)
 
std::list< std::string > const & additionalInfo () const
 
bool alreadyPrinted () const
 
void append (Exception const &another)
 
void append (std::string const &more_information)
 
void append (char const *more_information)
 
std::string const & category () const
 
void clearAdditionalInfo ()
 
void clearContext ()
 
void clearMessage ()
 
virtual Exceptionclone () const
 
std::list< std::string > const & context () const
 
 Exception (std::string const &aCategory)
 
 Exception (char const *aCategory)
 
 Exception (std::string const &aCategory, std::string const &message)
 
 Exception (char const *aCategory, std::string const &message)
 
 Exception (std::string const &aCategory, char const *message)
 
 Exception (char const *aCategory, char const *message)
 
 Exception (std::string const &aCategory, std::string const &message, Exception const &another)
 
 Exception (Exception const &other)
 
virtual std::string explainSelf () const
 
std::list< std::string > history () const
 
std::string message () const
 
Exceptionoperator= (Exception const &other)
 
void raise ()
 
int returnCode () const
 
void setAdditionalInfo (std::list< std::string > const &info)
 
void setAlreadyPrinted (bool value)
 
void setContext (std::list< std::string > const &context)
 
void swap (Exception &other)
 
char const * what () const override
 
 ~Exception () override
 

Private Member Functions

void init (std::string const &message)
 
virtual void rethrow ()
 
virtual int returnCode_ () const
 

Private Attributes

std::list< std::string > additionalInfo_
 
bool alreadyPrinted_
 
std::string category_
 
std::list< std::string > context_
 
std::ostringstream ost_
 
std::string what_
 

Friends

template<typename E , typename T >
detail::Desired< E, detail::is_derived_or_same< Exception, std::remove_reference_t< E > >::value >::typeoperator<< (E &&e, T const &stuff)
 
template<typename E >
detail::Desired< E, detail::is_derived_or_same< Exception, std::remove_reference_t< E > >::value >::typeoperator<< (E &&e, std::ostream &(*f)(std::ostream &))
 
template<typename E >
detail::Desired< E, detail::is_derived_or_same< Exception, std::remove_reference_t< E > >::value >::typeoperator<< (E &&e, std::ios_base &(*f)(std::ios_base &))
 

Detailed Description

Definition at line 67 of file Exception.h.

Constructor & Destructor Documentation

Exception::Exception ( std::string const &  aCategory)
explicit

Definition at line 6 of file Exception.cc.

Referenced by clone().

6  :
8  ost_(),
9  category_(aCategory),
10  what_(),
11  context_(),
13  alreadyPrinted_(false)
14  {
15  }
std::list< std::string > additionalInfo_
Definition: Exception.h:196
std::ostringstream ost_
Definition: Exception.h:192
std::string category_
Definition: Exception.h:193
std::list< std::string > context_
Definition: Exception.h:195
bool alreadyPrinted_
Definition: Exception.h:197
std::string what_
Definition: Exception.h:194
Exception::Exception ( char const *  aCategory)
explicit

Definition at line 17 of file Exception.cc.

17  :
19  ost_(),
20  category_(std::string(aCategory)),
21  what_(),
22  context_(),
24  alreadyPrinted_(false)
25  {
26  }
std::list< std::string > additionalInfo_
Definition: Exception.h:196
std::ostringstream ost_
Definition: Exception.h:192
std::string category_
Definition: Exception.h:193
std::list< std::string > context_
Definition: Exception.h:195
bool alreadyPrinted_
Definition: Exception.h:197
std::string what_
Definition: Exception.h:194
Exception::Exception ( std::string const &  aCategory,
std::string const &  message 
)

Definition at line 28 of file Exception.cc.

References init().

29  :
31  ost_(),
32  category_(aCategory),
33  what_(),
34  context_(),
36  alreadyPrinted_(false)
37  {
38  init(message);
39  }
std::list< std::string > additionalInfo_
Definition: Exception.h:196
std::ostringstream ost_
Definition: Exception.h:192
std::string message() const
Definition: Exception.cc:187
std::string category_
Definition: Exception.h:193
std::list< std::string > context_
Definition: Exception.h:195
bool alreadyPrinted_
Definition: Exception.h:197
std::string what_
Definition: Exception.h:194
void init(std::string const &message)
Definition: Exception.cc:82
Exception::Exception ( char const *  aCategory,
std::string const &  message 
)

Definition at line 41 of file Exception.cc.

References init().

42  :
44  ost_(),
45  category_(std::string(aCategory)),
46  what_(),
47  context_(),
49  alreadyPrinted_(false)
50  {
51  init(message);
52  }
std::list< std::string > additionalInfo_
Definition: Exception.h:196
std::ostringstream ost_
Definition: Exception.h:192
std::string message() const
Definition: Exception.cc:187
std::string category_
Definition: Exception.h:193
std::list< std::string > context_
Definition: Exception.h:195
bool alreadyPrinted_
Definition: Exception.h:197
std::string what_
Definition: Exception.h:194
void init(std::string const &message)
Definition: Exception.cc:82
Exception::Exception ( std::string const &  aCategory,
char const *  message 
)

Definition at line 55 of file Exception.cc.

References init(), and AlCaHLTBitMon_QueryRunRegistry::string.

56  :
58  ost_(),
59  category_(aCategory),
60  what_(),
61  context_(),
63  alreadyPrinted_(false)
64  {
66  }
std::list< std::string > additionalInfo_
Definition: Exception.h:196
std::ostringstream ost_
Definition: Exception.h:192
std::string message() const
Definition: Exception.cc:187
std::string category_
Definition: Exception.h:193
std::list< std::string > context_
Definition: Exception.h:195
bool alreadyPrinted_
Definition: Exception.h:197
std::string what_
Definition: Exception.h:194
void init(std::string const &message)
Definition: Exception.cc:82
Exception::Exception ( char const *  aCategory,
char const *  message 
)

Definition at line 69 of file Exception.cc.

References init(), and AlCaHLTBitMon_QueryRunRegistry::string.

70  :
72  ost_(),
73  category_(std::string(aCategory)),
74  what_(),
75  context_(),
77  alreadyPrinted_(false)
78  {
80  }
std::list< std::string > additionalInfo_
Definition: Exception.h:196
std::ostringstream ost_
Definition: Exception.h:192
std::string message() const
Definition: Exception.cc:187
std::string category_
Definition: Exception.h:193
std::list< std::string > context_
Definition: Exception.h:195
bool alreadyPrinted_
Definition: Exception.h:197
std::string what_
Definition: Exception.h:194
void init(std::string const &message)
Definition: Exception.cc:82
Exception::Exception ( std::string const &  aCategory,
std::string const &  message,
Exception const &  another 
)

Definition at line 90 of file Exception.cc.

References append(), message(), and ost_.

92  :
94  ost_(),
95  category_(aCategory),
96  what_(),
97  context_(another.context()),
98  additionalInfo_(another.additionalInfo()),
99  alreadyPrinted_(false)
100  {
101  ost_ << message;
102  // check for newline at end of message first
103  if(!message.empty() && message[message.size()-1]!='\n') {
104  ost_ << "\n";
105  }
106  append(another);
107  }
std::list< std::string > additionalInfo_
Definition: Exception.h:196
void append(Exception const &another)
Definition: Exception.cc:203
std::ostringstream ost_
Definition: Exception.h:192
std::string message() const
Definition: Exception.cc:187
std::string category_
Definition: Exception.h:193
std::list< std::string > context_
Definition: Exception.h:195
bool alreadyPrinted_
Definition: Exception.h:197
std::string what_
Definition: Exception.h:194
Exception::Exception ( Exception const &  other)

Definition at line 109 of file Exception.cc.

References ost_.

109  :
110  std::exception(),
111  ost_(),
112  category_(other.category_),
113  what_(other.what_),
114  context_(other.context_),
115  additionalInfo_(other.additionalInfo_),
116  alreadyPrinted_(other.alreadyPrinted_)
117  {
118  ost_ << other.ost_.str();
119  }
std::list< std::string > additionalInfo_
Definition: Exception.h:196
std::ostringstream ost_
Definition: Exception.h:192
std::string category_
Definition: Exception.h:193
std::list< std::string > context_
Definition: Exception.h:195
bool alreadyPrinted_
Definition: Exception.h:197
std::string what_
Definition: Exception.h:194
Exception::~Exception ( )
override

Definition at line 121 of file Exception.cc.

121  {
122  }

Member Function Documentation

void Exception::addAdditionalInfo ( std::string const &  info)
void Exception::addAdditionalInfo ( char const *  info)

Definition at line 239 of file Exception.cc.

References additionalInfo_, and AlCaHLTBitMon_QueryRunRegistry::string.

239  {
240  additionalInfo_.push_back(std::string(info));
241  }
std::list< std::string > additionalInfo_
Definition: Exception.h:196
static const TGPicture * info(bool iBackgroundIsBlack)
void Exception::addContext ( std::string const &  context)

Definition at line 227 of file Exception.cc.

References context_.

Referenced by DavixFile::abort(), edm::addContextAndPrintException(), edm::UnscheduledCallProducer::addContextToException(), edm::eventsetup::ComponentFactory< T >::addTo(), edm::addToMissingDictionariesException(), edm::eventsetup::EventSetupRecordImpl::addTraceInfoToCmsException(), edm::eventsetup::EventSetupRecord::addTraceInfoToCmsException(), L1GlobalTriggerObjectMaps::algorithmResult(), L1GlobalTriggerObjectMaps::AlgorithmResult::AlgorithmResult(), CompareToObjectMapRecord::analyze(), edm::EventProcessor::beginJob(), edm::Worker::beginJob(), edm::Worker::beginStream(), LocalCacheFile::cache(), DavixStorageMaker::check(), DavixFile::close(), L1GlobalTriggerObjectMaps::consistencyCheck(), edm::serviceregistry::ServicesManager::createServiceFor(), edm::EDLooperBase::doDuringLoop(), edm::Worker::endJob(), PhysicsTools::MVATrainerLooper::endOfLoop(), edm::Worker::endStream(), edm::Path::exceptionContext(), edm::Worker::exceptionContext(), edm::StreamSchedule::finishedPaths(), XrdFile::getActiveFile(), XrdAdaptor::RequestManager::getActiveFile(), L1GlobalTriggerObjectMaps::getCombinationsInCondition(), L1GlobalTriggerObjectMaps::ConditionsInAlgorithm::getConditionResult(), edm::RootTree::getEntry(), L1GlobalTriggerObjectMaps::CombinationsInCondition::getObjectIndex(), edm::RootDelayedReader::getProduct_(), edm::eventsetup::DependentRecordImplementation< EcalLaserDbRecord, boost::mpl::vector< EcalLaserAlphasRcd, EcalLaserAPDPNRatiosRefRcd, EcalLaserAPDPNRatiosRcd, EcalLinearCorrectionsRcd > >::getRecord(), L1GlobalTriggerObjectMaps::getStartEndIndex(), XrdAdaptor::Source::handle(), XrdAdaptor::RequestManager::handle(), XrdAdaptor::ClientRequest::HandleResponse(), XrdAdaptor::RequestManager::OpenHandler::HandleResponseWithHosts(), edm::BranchDescription::initFromDictionary(), XrdAdaptor::RequestManager::initialize(), edm::RootInputFileSequence::initTheFile(), LocalCacheFile::LocalCacheFile(), edm::makeInput(), nowrite(), DavixFile::open(), DCacheFile::open(), XrdFile::open(), StorageFactory::open(), XrdAdaptor::RequestManager::OpenHandler::open(), edm::StreamerInputFile::openStreamerFile(), XrdAdaptor::RequestManager::pickSingleSource(), DavixFile::position(), DCacheFile::position(), XrdFile::position(), ConvertObjectMapRecord::produce(), DavixFile::read(), DCacheFile::read(), XrdFile::read(), edm::StreamerInputFile::readBytes(), DavixFile::readv(), DCacheFile::readv(), XrdFile::readv(), XrdAdaptor::RequestManager::requestFailure(), DavixFile::resize(), XrdFile::resize(), edm::UnscheduledProductResolver::resolveProduct_(), XrdStorageMaker::setDebugLevel(), DQMRootSource::setupFile(), edm::StreamerInputFile::skipBytes(), XrdAdaptor::RequestManager::splitClientRequest(), DCacheStorageMaker::stagein(), edm::Maker::throwConfigurationException(), throwStorageError(), edm::Maker::throwValidationException(), L1GlobalTriggerObjectMaps::updateOperandTokenVector(), edm::eventsetup::validateEventSetupParameters(), edm::validateTopLevelParameterSets(), DavixFile::write(), DCacheFile::write(), XrdFile::write(), edm::ConfigurationDescriptions::writeCfiForLabel(), and edm::RootOutputFile::writeIndexIntoFile().

227  {
228  context_.push_back(context);
229  }
std::list< std::string > const & context() const
Definition: Exception.cc:191
std::list< std::string > context_
Definition: Exception.h:195
void Exception::addContext ( char const *  context)

Definition at line 231 of file Exception.cc.

References context_, and AlCaHLTBitMon_QueryRunRegistry::string.

231  {
232  context_.push_back(std::string(context));
233  }
std::list< std::string > const & context() const
Definition: Exception.cc:191
std::list< std::string > context_
Definition: Exception.h:195
std::list< std::string > const & Exception::additionalInfo ( ) const

Definition at line 195 of file Exception.cc.

References additionalInfo_.

Referenced by edm::RootInputFileSequence::initTheFile().

195  {
196  return additionalInfo_;
197  }
std::list< std::string > additionalInfo_
Definition: Exception.h:196
bool Exception::alreadyPrinted ( ) const

Definition at line 251 of file Exception.cc.

References alreadyPrinted_.

Referenced by edm::EventProcessor::runToCompletion().

251  {
252  return alreadyPrinted_;
253  }
bool alreadyPrinted_
Definition: Exception.h:197
void Exception::append ( Exception const &  another)
void Exception::append ( std::string const &  more_information)

Definition at line 207 of file Exception.cc.

References ost_.

Referenced by diclist.diclist::add().

207  {
208  ost_ << more_information;
209  }
std::ostringstream ost_
Definition: Exception.h:192
void Exception::append ( char const *  more_information)

Definition at line 211 of file Exception.cc.

References ost_.

Referenced by diclist.diclist::add().

211  {
212  ost_ << more_information;
213  }
std::ostringstream ost_
Definition: Exception.h:192
std::string const & Exception::category ( void  ) const
void Exception::clearAdditionalInfo ( )

Definition at line 223 of file Exception.cc.

References additionalInfo_.

Referenced by XrdAdaptor::RequestManager::initialize().

223  {
224  additionalInfo_.clear();
225  }
std::list< std::string > additionalInfo_
Definition: Exception.h:196
void Exception::clearContext ( )

Definition at line 219 of file Exception.cc.

References context_.

Referenced by XrdAdaptor::RequestManager::initialize().

219  {
220  context_.clear();
221  }
std::list< std::string > context_
Definition: Exception.h:195
void Exception::clearMessage ( )

Definition at line 215 of file Exception.cc.

References ost_.

Referenced by XrdAdaptor::RequestManager::initialize(), StorageFactory::open(), and edm::StreamerInputFile::openStreamerFile().

215  {
216  ost_.str("");
217  }
std::ostringstream ost_
Definition: Exception.h:192
Exception * Exception::clone ( void  ) const
virtual

Reimplemented in edm::Exception, and edm::MultipleException.

Definition at line 259 of file Exception.cc.

References Exception().

Referenced by edm::ExceptionCollector::addException(), edm::ExceptionCollector::call(), and edm::Path::workerFinished().

259  {
260  return new Exception(*this);
261  }
Exception(std::string const &aCategory)
Definition: Exception.cc:6
std::list< std::string > const & Exception::context ( ) const
std::string Exception::explainSelf ( ) const
virtual

Definition at line 146 of file Exception.cc.

References additionalInfo_, EnergyCorrector::c, category_, context_, KineDebug3::count(), mps_fire::i, ost_, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by edm::ExceptionCollector::addException(), ConvertedPhotonProducer::buildCollections(), edm::ExceptionCollector::call(), StorageFactory::check(), DTVDriftWriter::endJob(), DTT0Correction::endJob(), DTTTrigCorrection::endJob(), L1GtUtils::LogicalExpressionL1Results::initialize(), edm::RootInputFileSequence::initTheFile(), main(), cms::operator<<(), edm::printCmsException(), edm::printCmsExceptionWarning(), CachedTrajectory::propagate(), ConversionVertexFinder::run(), StorageFactory::stagein(), TrajectoryStateClosestToPoint::TrajectoryStateClosestToPoint(), MuonUpdatorAtVertex::update(), and what().

146  {
147  std::ostringstream ost;
148 
149  if (context_.empty()) {
150  ost << "An exception of category '" << category_ << "' occurred.\n";
151  }
152  else {
153  ost << "An exception of category '" << category_ << "' occurred while\n";
154  int count = 0;
155  for (std::list<std::string>::const_reverse_iterator i = context_.rbegin(),
156  iEnd = context_.rend();
157  i != iEnd; ++i, ++count) {
158  ost << " [" << count << "] " << *i << "\n";
159  }
160  }
161 
162  std::string centralMessage(ost_.str());
163  if (!centralMessage.empty()) {
164  ost << "Exception Message:\n";
165  ost << centralMessage;
166  if (centralMessage[centralMessage.size() - 1] != '\n') {
167  ost << "\n";
168  }
169  }
170 
171  if (!additionalInfo_.empty()) {
172  ost << " Additional Info:\n";
173  char c = 'a';
174  for (std::list<std::string>::const_reverse_iterator i = additionalInfo_.rbegin(),
175  iEnd = additionalInfo_.rend();
176  i != iEnd; ++i, ++c) {
177  ost << " [" << c << "] " << *i << "\n";
178  }
179  }
180  return ost.str();
181  }
std::list< std::string > additionalInfo_
Definition: Exception.h:196
std::ostringstream ost_
Definition: Exception.h:192
std::string category_
Definition: Exception.h:193
std::list< std::string > context_
Definition: Exception.h:195
std::list< std::string > Exception::history ( ) const

Definition at line 271 of file Exception.cc.

References category_.

271  {
272  std::list<std::string> returnValue;
273  returnValue.push_back(category_);
274  return returnValue;
275  }
std::string category_
Definition: Exception.h:193
void Exception::init ( std::string const &  message)
private

Definition at line 82 of file Exception.cc.

References message(), and ost_.

Referenced by Exception().

82  {
83  ost_ << message;
84  if(!message.empty()) {
85  unsigned sz = message.size()-1;
86  if(message[sz] != '\n' && message[sz] != ' ') ost_ << " ";
87  }
88  }
std::ostringstream ost_
Definition: Exception.h:192
std::string message() const
Definition: Exception.cc:187
std::string Exception::message ( ) const
Exception & Exception::operator= ( Exception const &  other)

Definition at line 135 of file Exception.cc.

References swap(), and groupFilesInBlocks::temp.

135  {
137  this->swap(temp);
138  return *this;
139  }
void swap(Exception &other)
Definition: Exception.cc:125
void cms::Exception::raise ( )
inline
void Exception::rethrow ( )
privatevirtual

Reimplemented in edm::Exception.

Definition at line 263 of file Exception.cc.

263  {
264  throw *this;
265  }
int Exception::returnCode ( ) const

Definition at line 199 of file Exception.cc.

References returnCode_().

Referenced by edm::addContextAndPrintException(), edm::ExceptionCollector::addException(), and edm::ExceptionCollector::call().

199  {
200  return returnCode_();
201  }
virtual int returnCode_() const
Definition: Exception.cc:267
int Exception::returnCode_ ( ) const
privatevirtual

Reimplemented in edm::Exception, and edm::MultipleException.

Definition at line 267 of file Exception.cc.

Referenced by returnCode().

267  {
268  return 8001;
269  }
void Exception::setAdditionalInfo ( std::list< std::string > const &  info)

Definition at line 247 of file Exception.cc.

References additionalInfo_, and info().

247  {
249  }
std::list< std::string > additionalInfo_
Definition: Exception.h:196
static const TGPicture * info(bool iBackgroundIsBlack)
void Exception::setAlreadyPrinted ( bool  value)

Definition at line 255 of file Exception.cc.

References alreadyPrinted_, and relativeConstraints::value.

Referenced by edm::addContextAndPrintException().

255  {
257  }
bool alreadyPrinted_
Definition: Exception.h:197
void Exception::setContext ( std::list< std::string > const &  context)

Definition at line 243 of file Exception.cc.

References context(), and context_.

243  {
244  context_ = context;
245  }
std::list< std::string > const & context() const
Definition: Exception.cc:191
std::list< std::string > context_
Definition: Exception.h:195
void Exception::swap ( Exception other)

Definition at line 125 of file Exception.cc.

References additionalInfo_, alreadyPrinted_, category_, context_, ost_, std::swap(), and what_.

Referenced by operator=().

125  {
126  ost_ << other.ost_.str();
127  category_.swap(other.category_);
128  what_.swap(other.what_);
129  context_.swap(other.context_);
130  additionalInfo_.swap(other.additionalInfo_);
131  std::swap(alreadyPrinted_, other.alreadyPrinted_);
132  }
std::list< std::string > additionalInfo_
Definition: Exception.h:196
std::ostringstream ost_
Definition: Exception.h:192
std::string category_
Definition: Exception.h:193
void swap(edm::DataFrameContainer &lhs, edm::DataFrameContainer &rhs)
std::list< std::string > context_
Definition: Exception.h:195
bool alreadyPrinted_
Definition: Exception.h:197
std::string what_
Definition: Exception.h:194
char const * Exception::what ( ) const
override

Definition at line 141 of file Exception.cc.

References explainSelf(), and what_.

Referenced by AdaptiveVertexReconstructor::AdaptiveVertexReconstructor(), FWRecoGeometryESProducer::addGEMGeometry(), FWTGeoRecoGeometryESProducer::addGEMGeometry(), FWRecoGeometryESProducer::addME0Geometry(), FWTGeoRecoGeometryESProducer::addME0Geometry(), MeasurementTrackerImpl::addPhase2Det(), MeasurementTrackerImpl::addPixelDet(), MeasurementTrackerImpl::addStripDet(), L1CondDBPayloadWriterExt::analyze(), SiStripDetVOffFakeBuilder::analyze(), AlcaBeamMonitor::analyze(), L1CondDBPayloadWriter::analyze(), sistrip::SpyIdentifyRunsModule::analyze(), SiStripSpyMonitorModule::analyze(), PrimaryVertexValidation::analyze(), AlcaBeamMonitor::beginLuminosityBlock(), FWPFCandidateDetailView::build(), FWPFPatJet3DProxyBuilder< T >::build(), FWTrackProxyBuilderFullFramework::build(), FWPFCandidateDetailView::buildGLEventScene(), MagGeoBuilderFromDDD::buildInterpolator(), CSCSectorReceiverLUT::calcGlobalPhiME(), edm::service::MessageServicePSetValidation::check(), dqmservices::DQMStreamerReader::checkNextEvent(), PhysicsTools::ProcessRegistry< Base_t, CalibBase_t, Parent_t >::Factory::create(), sistrip::RawToDigiUnpacker::createDigis(), sistrip::SpyUnpacker::createDigis(), EcalZmassClient::dqmEndJob(), FWModelChangeManager::endChanges(), FWFFLooper::endOfLoop(), cond::persistency::Session::fetchPayload(), AdHocNTupler::fill(), SiStripMonitorPedestals::fillCondDBMEs(), NuclearVertexBuilder::FillVertexWithAdaptVtxFitter(), sistrip::SpyEventMatcherModule::filter(), sistrip::SpyEventMatcherModule::findL1IDandAPVAddress(), TrackerOfflineValidationSummary::fitResiduals(), TrackerOfflineValidation::fitResiduals(), CSCSectorReceiverLUT::getGlobalEtaValue(), CSCSectorReceiverLUT::getGlobalPhiValue(), SiStripConfigDb::handleException(), edm::MessageLoggerQ::handshakedCommand(), L1GtUtils::LogicalExpressionL1Results::initialize(), PhotonConversionTrajectorySeedProducerFromQuadrupletsAlgo::inspect(), SiPixelGainCalibrationService::isDead(), SiPixelGainCalibrationOfflineService::isDead(), SiPixelGainCalibrationOfflineSimService::isDead(), SiPixelGainCalibrationForHLTSimService::isDead(), SiPixelGainCalibrationForHLTService::isDead(), SiPixelGainCalibrationOfflineService::isDeadColumn(), SiPixelGainCalibrationOfflineSimService::isDeadColumn(), SiPixelGainCalibrationForHLTSimService::isDeadColumn(), SiPixelGainCalibrationForHLTService::isDeadColumn(), SiPixelGainCalibrationService::isNoisy(), SiPixelGainCalibrationOfflineService::isNoisy(), SiPixelGainCalibrationOfflineSimService::isNoisy(), SiPixelGainCalibrationForHLTSimService::isNoisy(), SiPixelGainCalibrationForHLTService::isNoisy(), SiPixelGainCalibrationOfflineService::isNoisyColumn(), SiPixelGainCalibrationOfflineSimService::isNoisyColumn(), SiPixelGainCalibrationForHLTSimService::isNoisyColumn(), SiPixelGainCalibrationForHLTService::isNoisyColumn(), MatacqProducer::loadOrbitOffset(), main(), dqmservices::DQMStreamerReader::openNextFile_(), tfwliteselectortest::ThingsWorker::process(), tfwliteselectortest::ThingsTSelector::process(), cond::XMLAuthenticationService::XMLAuthenticationService::processFile(), PhotonConversionTrajectorySeedProducerFromQuadruplets::produce(), CastorDigiToRaw::produce(), HcalDigiToRaw::produce(), EcalDCCTBUnpackingModule::produce(), HcalRawToDigi::produce(), EcalDCCTB07UnpackingModule::produce(), sistrip::SpyEventSummaryProducer::produce(), CastorRawToDigi::produce(), CSCTFUnpacker::produce(), sistrip::FEDEmulatorModule::produce(), XrdFile::readv(), RecoProducerFP420::RecoProducerFP420(), sistrip::FEDEmulator::retrieveNoises(), sistrip::FEDEmulator::retrievePedestals(), cond::Utilities::run(), SiStripClusterizerFromRaw::run(), edm::service::ThreadSafeLogMessageLoggerScribe::runCommand(), edm::service::MessageLoggerScribe::runCommand(), FWPathsPopup::scheduleReloadEvent(), cond::persistency::Session::storePayload< std::string >(), dqmservices::DQMStreamerReader::skip(), edm::convertException::stdToEDM(), cond::persistency::Session::storePayload(), SiStripPedestalsSubtractor::subtract_(), and DTCalibDBUtils::writeToDB().

141  {
142  what_ = explainSelf();
143  return what_.c_str();
144  }
virtual std::string explainSelf() const
Definition: Exception.cc:146
std::string what_
Definition: Exception.h:194

Friends And Related Function Documentation

template<typename E , typename T >
detail::Desired<E, detail::is_derived_or_same<Exception,std::remove_reference_t<E> >::value>::type& operator<< ( E &&  e,
T const &  stuff 
)
friend

Definition at line 213 of file Exception.h.

214  {
215  e.ost_ << stuff;
216  return e;
217  }
template<typename E >
detail::Desired<E, detail::is_derived_or_same<Exception,std::remove_reference_t<E> >::value>::type& operator<< ( E &&  e,
std::ostream &(*)(std::ostream &)  f 
)
friend

Definition at line 222 of file Exception.h.

223  {
224  f(e.ost_);
225  return e;
226  }
double f[11][100]
template<typename E >
detail::Desired<E, detail::is_derived_or_same<Exception,std::remove_reference_t<E> >::value>::type& operator<< ( E &&  e,
std::ios_base &(*)(std::ios_base &)  f 
)
friend

Definition at line 231 of file Exception.h.

232  {
233  f(e.ost_);
234  return e;
235  }
double f[11][100]

Member Data Documentation

std::list<std::string> cms::Exception::additionalInfo_
private
bool cms::Exception::alreadyPrinted_
private

Definition at line 197 of file Exception.h.

Referenced by alreadyPrinted(), setAlreadyPrinted(), and swap().

std::string cms::Exception::category_
private

Definition at line 193 of file Exception.h.

Referenced by category(), explainSelf(), history(), and swap().

std::list<std::string> cms::Exception::context_
private

Definition at line 195 of file Exception.h.

Referenced by addContext(), clearContext(), context(), explainSelf(), setContext(), and swap().

std::ostringstream cms::Exception::ost_
private

Definition at line 192 of file Exception.h.

Referenced by append(), clearMessage(), Exception(), explainSelf(), init(), message(), and swap().

std::string cms::Exception::what_
mutableprivate

Definition at line 194 of file Exception.h.

Referenced by swap(), and what().