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 68 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().

7  : std::exception(), ost_(), category_(aCategory), what_(), context_(), additionalInfo_(), alreadyPrinted_(false) {}
std::list< std::string > additionalInfo_
Definition: Exception.h:185
std::ostringstream ost_
Definition: Exception.h:181
std::string category_
Definition: Exception.h:182
std::list< std::string > context_
Definition: Exception.h:184
bool alreadyPrinted_
Definition: Exception.h:186
std::string what_
Definition: Exception.h:183
Exception::Exception ( char const *  aCategory)
explicit

Definition at line 9 of file Exception.cc.

10  : std::exception(),
11  ost_(),
12  category_(std::string(aCategory)),
13  what_(),
14  context_(),
16  alreadyPrinted_(false) {}
std::list< std::string > additionalInfo_
Definition: Exception.h:185
std::ostringstream ost_
Definition: Exception.h:181
std::string category_
Definition: Exception.h:182
std::list< std::string > context_
Definition: Exception.h:184
bool alreadyPrinted_
Definition: Exception.h:186
std::string what_
Definition: Exception.h:183
Exception::Exception ( std::string const &  aCategory,
std::string const &  message 
)

Definition at line 18 of file Exception.cc.

References init().

19  : std::exception(), ost_(), category_(aCategory), what_(), context_(), additionalInfo_(), alreadyPrinted_(false) {
20  init(message);
21  }
std::list< std::string > additionalInfo_
Definition: Exception.h:185
std::ostringstream ost_
Definition: Exception.h:181
std::string message() const
Definition: Exception.cc:145
std::string category_
Definition: Exception.h:182
std::list< std::string > context_
Definition: Exception.h:184
bool alreadyPrinted_
Definition: Exception.h:186
std::string what_
Definition: Exception.h:183
void init(std::string const &message)
Definition: Exception.cc:50
Exception::Exception ( char const *  aCategory,
std::string const &  message 
)

Definition at line 23 of file Exception.cc.

References init().

24  : std::exception(),
25  ost_(),
26  category_(std::string(aCategory)),
27  what_(),
28  context_(),
30  alreadyPrinted_(false) {
31  init(message);
32  }
std::list< std::string > additionalInfo_
Definition: Exception.h:185
std::ostringstream ost_
Definition: Exception.h:181
std::string message() const
Definition: Exception.cc:145
std::string category_
Definition: Exception.h:182
std::list< std::string > context_
Definition: Exception.h:184
bool alreadyPrinted_
Definition: Exception.h:186
std::string what_
Definition: Exception.h:183
void init(std::string const &message)
Definition: Exception.cc:50
Exception::Exception ( std::string const &  aCategory,
char const *  message 
)

Definition at line 34 of file Exception.cc.

References init(), and AlCaHLTBitMon_QueryRunRegistry::string.

35  : std::exception(), ost_(), category_(aCategory), what_(), context_(), additionalInfo_(), alreadyPrinted_(false) {
37  }
std::list< std::string > additionalInfo_
Definition: Exception.h:185
std::ostringstream ost_
Definition: Exception.h:181
std::string message() const
Definition: Exception.cc:145
std::string category_
Definition: Exception.h:182
std::list< std::string > context_
Definition: Exception.h:184
bool alreadyPrinted_
Definition: Exception.h:186
std::string what_
Definition: Exception.h:183
void init(std::string const &message)
Definition: Exception.cc:50
Exception::Exception ( char const *  aCategory,
char const *  message 
)

Definition at line 39 of file Exception.cc.

References init(), and AlCaHLTBitMon_QueryRunRegistry::string.

40  : std::exception(),
41  ost_(),
42  category_(std::string(aCategory)),
43  what_(),
44  context_(),
46  alreadyPrinted_(false) {
48  }
std::list< std::string > additionalInfo_
Definition: Exception.h:185
std::ostringstream ost_
Definition: Exception.h:181
std::string message() const
Definition: Exception.cc:145
std::string category_
Definition: Exception.h:182
std::list< std::string > context_
Definition: Exception.h:184
bool alreadyPrinted_
Definition: Exception.h:186
std::string what_
Definition: Exception.h:183
void init(std::string const &message)
Definition: Exception.cc:50
Exception::Exception ( std::string const &  aCategory,
std::string const &  message,
Exception const &  another 
)

Definition at line 59 of file Exception.cc.

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

60  : std::exception(),
61  ost_(),
62  category_(aCategory),
63  what_(),
64  context_(another.context()),
65  additionalInfo_(another.additionalInfo()),
66  alreadyPrinted_(false) {
67  ost_ << message;
68  // check for newline at end of message first
69  if (!message.empty() && message[message.size() - 1] != '\n') {
70  ost_ << "\n";
71  }
72  append(another);
73  }
std::list< std::string > additionalInfo_
Definition: Exception.h:185
void append(Exception const &another)
Definition: Exception.cc:153
std::ostringstream ost_
Definition: Exception.h:181
std::string message() const
Definition: Exception.cc:145
std::string category_
Definition: Exception.h:182
std::list< std::string > context_
Definition: Exception.h:184
bool alreadyPrinted_
Definition: Exception.h:186
std::string what_
Definition: Exception.h:183
Exception::Exception ( Exception const &  other)

Definition at line 75 of file Exception.cc.

References ost_.

76  : std::exception(),
77  ost_(),
78  category_(other.category_),
79  what_(other.what_),
80  context_(other.context_),
81  additionalInfo_(other.additionalInfo_),
82  alreadyPrinted_(other.alreadyPrinted_) {
83  ost_ << other.ost_.str();
84  }
std::list< std::string > additionalInfo_
Definition: Exception.h:185
std::ostringstream ost_
Definition: Exception.h:181
std::string category_
Definition: Exception.h:182
std::list< std::string > context_
Definition: Exception.h:184
bool alreadyPrinted_
Definition: Exception.h:186
std::string what_
Definition: Exception.h:183
Exception::~Exception ( )
override

Definition at line 86 of file Exception.cc.

86 {}

Member Function Documentation

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

Definition at line 171 of file Exception.cc.

References additionalInfo_, and AlCaHLTBitMon_QueryRunRegistry::string.

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

Definition at line 165 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::handleOpen(), 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().

165 { context_.push_back(context); }
std::list< std::string > const & context() const
Definition: Exception.cc:147
std::list< std::string > context_
Definition: Exception.h:184
void Exception::addContext ( char const *  context)

Definition at line 167 of file Exception.cc.

References context_, and AlCaHLTBitMon_QueryRunRegistry::string.

167 { context_.push_back(std::string(context)); }
std::list< std::string > const & context() const
Definition: Exception.cc:147
std::list< std::string > context_
Definition: Exception.h:184
std::list< std::string > const & Exception::additionalInfo ( ) const

Definition at line 149 of file Exception.cc.

References additionalInfo_.

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

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

Definition at line 177 of file Exception.cc.

References alreadyPrinted_.

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

177 { return alreadyPrinted_; }
bool alreadyPrinted_
Definition: Exception.h:186
void Exception::append ( Exception const &  another)
void Exception::append ( std::string const &  more_information)

Definition at line 155 of file Exception.cc.

References ost_.

Referenced by diclist.diclist::add().

155 { ost_ << more_information; }
std::ostringstream ost_
Definition: Exception.h:181
void Exception::append ( char const *  more_information)

Definition at line 157 of file Exception.cc.

References ost_.

Referenced by diclist.diclist::add().

157 { ost_ << more_information; }
std::ostringstream ost_
Definition: Exception.h:181
std::string const & Exception::category ( void  ) const
void Exception::clearAdditionalInfo ( )

Definition at line 163 of file Exception.cc.

References additionalInfo_.

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

163 { additionalInfo_.clear(); }
std::list< std::string > additionalInfo_
Definition: Exception.h:185
void Exception::clearContext ( )

Definition at line 161 of file Exception.cc.

References context_.

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

161 { context_.clear(); }
std::list< std::string > context_
Definition: Exception.h:184
void Exception::clearMessage ( )

Definition at line 159 of file Exception.cc.

References ost_.

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

159 { ost_.str(""); }
std::ostringstream ost_
Definition: Exception.h:181
Exception * Exception::clone ( void  ) const
virtual

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

Definition at line 181 of file Exception.cc.

References Exception().

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

181 { return new Exception(*this); }
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 108 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().

108  {
109  std::ostringstream ost;
110 
111  if (context_.empty()) {
112  ost << "An exception of category '" << category_ << "' occurred.\n";
113  } else {
114  ost << "An exception of category '" << category_ << "' occurred while\n";
115  int count = 0;
116  for (std::list<std::string>::const_reverse_iterator i = context_.rbegin(), iEnd = context_.rend(); i != iEnd;
117  ++i, ++count) {
118  ost << " [" << count << "] " << *i << "\n";
119  }
120  }
121 
122  std::string centralMessage(ost_.str());
123  if (!centralMessage.empty()) {
124  ost << "Exception Message:\n";
125  ost << centralMessage;
126  if (centralMessage[centralMessage.size() - 1] != '\n') {
127  ost << "\n";
128  }
129  }
130 
131  if (!additionalInfo_.empty()) {
132  ost << " Additional Info:\n";
133  char c = 'a';
134  for (std::list<std::string>::const_reverse_iterator i = additionalInfo_.rbegin(), iEnd = additionalInfo_.rend();
135  i != iEnd;
136  ++i, ++c) {
137  ost << " [" << c << "] " << *i << "\n";
138  }
139  }
140  return ost.str();
141  }
std::list< std::string > additionalInfo_
Definition: Exception.h:185
std::ostringstream ost_
Definition: Exception.h:181
std::string category_
Definition: Exception.h:182
std::list< std::string > context_
Definition: Exception.h:184
std::list< std::string > Exception::history ( ) const

Definition at line 187 of file Exception.cc.

References category_.

187  {
188  std::list<std::string> returnValue;
189  returnValue.push_back(category_);
190  return returnValue;
191  }
std::string category_
Definition: Exception.h:182
void Exception::init ( std::string const &  message)
private

Definition at line 50 of file Exception.cc.

References message(), and ost_.

Referenced by Exception().

50  {
51  ost_ << message;
52  if (!message.empty()) {
53  unsigned sz = message.size() - 1;
54  if (message[sz] != '\n' && message[sz] != ' ')
55  ost_ << " ";
56  }
57  }
std::ostringstream ost_
Definition: Exception.h:181
std::string message() const
Definition: Exception.cc:145
std::string Exception::message ( ) const
Exception & Exception::operator= ( Exception const &  other)

Definition at line 97 of file Exception.cc.

References swap(), and groupFilesInBlocks::temp.

97  {
99  this->swap(temp);
100  return *this;
101  }
void swap(Exception &other)
Definition: Exception.cc:88
void cms::Exception::raise ( )
inline
void Exception::rethrow ( )
privatevirtual

Reimplemented in edm::Exception.

Definition at line 183 of file Exception.cc.

183 { throw *this; }
int Exception::returnCode ( ) const

Definition at line 151 of file Exception.cc.

References returnCode_().

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

151 { return returnCode_(); }
virtual int returnCode_() const
Definition: Exception.cc:185
int Exception::returnCode_ ( ) const
privatevirtual

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

Definition at line 185 of file Exception.cc.

Referenced by returnCode().

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

Definition at line 175 of file Exception.cc.

References additionalInfo_, and info().

175 { additionalInfo_ = info; }
std::list< std::string > additionalInfo_
Definition: Exception.h:185
static const TGPicture * info(bool iBackgroundIsBlack)
void Exception::setAlreadyPrinted ( bool  value)
void Exception::setContext ( std::list< std::string > const &  context)

Definition at line 173 of file Exception.cc.

References context(), and context_.

173 { context_ = context; }
std::list< std::string > const & context() const
Definition: Exception.cc:147
std::list< std::string > context_
Definition: Exception.h:184
void Exception::swap ( Exception other)

Definition at line 88 of file Exception.cc.

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

Referenced by operator=().

88  {
89  ost_ << other.ost_.str();
90  category_.swap(other.category_);
91  what_.swap(other.what_);
92  context_.swap(other.context_);
93  additionalInfo_.swap(other.additionalInfo_);
94  std::swap(alreadyPrinted_, other.alreadyPrinted_);
95  }
std::list< std::string > additionalInfo_
Definition: Exception.h:185
std::ostringstream ost_
Definition: Exception.h:181
std::string category_
Definition: Exception.h:182
void swap(edm::DataFrameContainer &lhs, edm::DataFrameContainer &rhs)
std::list< std::string > context_
Definition: Exception.h:184
bool alreadyPrinted_
Definition: Exception.h:186
std::string what_
Definition: Exception.h:183
char const * Exception::what ( ) const
override

Definition at line 103 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(), SiPixelGainCalibrationForHLTSimService::isNoisy(), SiPixelGainCalibrationOfflineSimService::isNoisy(), SiPixelGainCalibrationForHLTService::isNoisy(), SiPixelGainCalibrationOfflineService::isNoisyColumn(), SiPixelGainCalibrationOfflineSimService::isNoisyColumn(), SiPixelGainCalibrationForHLTSimService::isNoisyColumn(), SiPixelGainCalibrationForHLTService::isNoisyColumn(), MatacqProducer::loadOrbitOffset(), main(), dqmservices::DQMStreamerReader::openNextFileImp_(), 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(), PYBIND11_MODULE(), 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().

103  {
104  what_ = explainSelf();
105  return what_.c_str();
106  }
virtual std::string explainSelf() const
Definition: Exception.cc:108
std::string what_
Definition: Exception.h:183

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 198 of file Exception.h.

198  {
199  e.ost_ << stuff;
200  return e;
201  }
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 205 of file Exception.h.

205  {
206  f(e.ost_);
207  return e;
208  }
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 212 of file Exception.h.

212  {
213  f(e.ost_);
214  return e;
215  }
double f[11][100]

Member Data Documentation

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

Definition at line 186 of file Exception.h.

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

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

Definition at line 182 of file Exception.h.

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

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

Definition at line 184 of file Exception.h.

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

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

Definition at line 181 of file Exception.h.

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

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

Definition at line 183 of file Exception.h.

Referenced by swap(), and what().