CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 edmNew::CapacityExaustedException LinPtException MeasurementDetException npstat::NpstatException popcon::Exception PropagationException RPCException StatisticsException StripClusterizerAlgorithm::InvalidChargeException TrajectoryStateException TritonException VertexException

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 noexceptoverride
 
 ~Exception () noexceptoverride
 

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 >::type
operator<< (E &&e, T const &stuff)
 
template<typename E >
detail::Desired< E,
detail::is_derived_or_same
< Exception,
std::remove_reference_t< E >
>::value >::type
operator<< (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 >::type
operator<< (E &&e, std::ios_base &(*f)(std::ios_base &))
 

Detailed Description

Definition at line 70 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:189
std::ostringstream ost_
Definition: Exception.h:184
std::string category_
Definition: Exception.h:185
std::list< std::string > context_
Definition: Exception.h:188
bool alreadyPrinted_
Definition: Exception.h:190
std::string what_
Definition: Exception.h:187
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:189
std::ostringstream ost_
Definition: Exception.h:184
std::string category_
Definition: Exception.h:185
std::list< std::string > context_
Definition: Exception.h:188
bool alreadyPrinted_
Definition: Exception.h:190
std::string what_
Definition: Exception.h:187
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:189
std::ostringstream ost_
Definition: Exception.h:184
std::string message() const
Definition: Exception.cc:145
std::string category_
Definition: Exception.h:185
std::list< std::string > context_
Definition: Exception.h:188
bool alreadyPrinted_
Definition: Exception.h:190
std::string what_
Definition: Exception.h:187
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:189
std::ostringstream ost_
Definition: Exception.h:184
std::string message() const
Definition: Exception.cc:145
std::string category_
Definition: Exception.h:185
std::list< std::string > context_
Definition: Exception.h:188
bool alreadyPrinted_
Definition: Exception.h:190
std::string what_
Definition: Exception.h:187
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:189
std::ostringstream ost_
Definition: Exception.h:184
std::string message() const
Definition: Exception.cc:145
std::string category_
Definition: Exception.h:185
std::list< std::string > context_
Definition: Exception.h:188
bool alreadyPrinted_
Definition: Exception.h:190
std::string what_
Definition: Exception.h:187
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:189
std::ostringstream ost_
Definition: Exception.h:184
std::string message() const
Definition: Exception.cc:145
std::string category_
Definition: Exception.h:185
std::list< std::string > context_
Definition: Exception.h:188
bool alreadyPrinted_
Definition: Exception.h:190
std::string what_
Definition: Exception.h:187
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:189
void append(Exception const &another)
Definition: Exception.cc:153
std::ostringstream ost_
Definition: Exception.h:184
std::string message() const
Definition: Exception.cc:145
std::string category_
Definition: Exception.h:185
std::list< std::string > context_
Definition: Exception.h:188
bool alreadyPrinted_
Definition: Exception.h:190
std::string what_
Definition: Exception.h:187
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:189
std::ostringstream ost_
Definition: Exception.h:184
std::string category_
Definition: Exception.h:185
std::list< std::string > context_
Definition: Exception.h:188
bool alreadyPrinted_
Definition: Exception.h:190
std::string what_
Definition: Exception.h:187
Exception::~Exception ( )
overridenoexcept

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:189
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 edm::storage::DavixFile::abort(), edm::ThinnedAssociationsHelper::addAssociation(), edm::addContextAndPrintException(), edm::UnscheduledCallProducer::addContextToException(), edm::ProductRegistry::addElementTypesForAliases(), 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(), edm::storage::LocalCacheFile::cache(), edm::storage::DavixStorageMaker::check(), trackerDTC::Setup::checkDTCId(), trackerDTC::Setup::checkGeometry(), trackerDTC::Setup::checkTFPIdentifier(), trackerDTC::Setup::checkTKLayoutId(), cms::cuda::chooseDevice(), edm::storage::DavixFile::close(), L1GlobalTriggerObjectMaps::consistencyCheck(), edm::serviceregistry::ServicesManager::createServiceFor(), edm::EDLooperBase::doDuringLoop(), trackerDTC::Setup::encodeLayerId(), edm::Worker::endJob(), edm::Worker::endStream(), edm::exceptionContext(), edm::Path::exceptionContext(), edm::Schedule::fillModuleAndConsumesInfo(), edm::StreamSchedule::finishedPaths(), edm::storage::XrdFile::getActiveFile(), XrdAdaptor::RequestManager::getActiveFile(), L1GlobalTriggerObjectMaps::getCombinationsInCondition(), L1GlobalTriggerObjectMaps::ConditionsInAlgorithm::getConditionResult(), edm::RootTree::getEntry(), L1GlobalTriggerObjectMaps::CombinationsInCondition::getObjectIndex(), edm::RootDelayedReader::getProduct_(), edm::eventsetup::DependentRecordImplementation< EcalMappingRcd, edm::mpl::Vector< EcalMappingElectronicsRcd > >::getRecord(), L1GlobalTriggerObjectMaps::getStartEndIndex(), fwlite::DataGetterHelper::getThinnedKeyFrom(), BareRootProductGetter::getThinnedKeyFrom(), edm::EventPrincipal::getThinnedKeyFrom(), XrdAdaptor::Source::handle(), XrdAdaptor::RequestManager::handle(), XrdAdaptor::ClientRequest::HandleResponse(), XrdAdaptor::RequestManager::OpenHandler::HandleResponseWithHosts(), edm::BranchDescription::initFromDictionary(), XrdAdaptor::RequestManager::initialize(), edm::RootInputFileSequence::initTheFile(), edmplugin::PluginManager::load(), edm::storage::LocalCacheFile::LocalCacheFile(), edm::makeInput(), nowrite(), edm::storage::DavixFile::open(), edm::storage::DCacheFile::open(), edm::storage::XrdFile::open(), edm::storage::StorageFactory::open(), XrdAdaptor::RequestManager::OpenHandler::open(), edm::StreamerInputFile::openStreamerFile(), operator<<(), XrdAdaptor::RequestManager::pickSingleSource(), edm::storage::DavixFile::position(), edm::storage::DCacheFile::position(), edm::storage::XrdFile::position(), ConvertObjectMapRecord::produce(), trackerDTC::Setup::produceSensorModules(), edm::storage::DCacheFile::read(), edm::storage::DavixFile::read(), edm::storage::XrdFile::read(), edm::StreamerInputFile::readBytes(), DQMRootSource::readFile_(), edm::storage::DavixFile::readv(), edm::storage::DCacheFile::readv(), edm::storage::XrdFile::readv(), edm::Worker::registerThinnedAssociations(), XrdAdaptor::RequestManager::requestFailure(), edm::storage::DavixFile::resize(), edm::storage::XrdFile::resize(), trackerDTC::Setup::sensorModule(), edm::storage::XrdStorageMaker::setDebugLevel(), TTDTC::setStream(), edm::StreamerInputFile::skipBytes(), XrdAdaptor::RequestManager::splitClientRequest(), edm::storage::DCacheStorageMaker::stagein(), TTDTC::stream(), edm::Maker::throwConfigurationException(), throwStorageError(), edm::Maker::throwValidationException(), edmplugin::PluginManager::tryToLoad(), L1GlobalTriggerObjectMaps::updateOperandTokenVector(), edm::eventsetup::validateEventSetupParameters(), edm::validateLooper(), edm::validateTopLevelParameterSets(), edm::storage::DCacheFile::write(), edm::storage::DavixFile::write(), edm::storage::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:188
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:188
std::list< std::string > const & Exception::additionalInfo ( ) const

Definition at line 149 of file Exception.cc.

References additionalInfo_.

Referenced by DQMRootSource::readFile_().

149 { return additionalInfo_; }
std::list< std::string > additionalInfo_
Definition: Exception.h:189
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:190
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(), and BeautifulSoup.Tag::setString().

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

Definition at line 157 of file Exception.cc.

References ost_.

Referenced by diclist.diclist::add(), and BeautifulSoup.Tag::setString().

157 { ost_ << more_information; }
std::ostringstream ost_
Definition: Exception.h:184
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:189
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:188
void Exception::clearMessage ( )

Definition at line 159 of file Exception.cc.

References ost_.

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

159 { ost_.str(""); }
std::ostringstream ost_
Definition: Exception.h:184
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_, c, category_, context_, submitPVResolutionJobs::count, mps_fire::i, ost_, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by edm::ExceptionCollector::addException(), edm::ExceptionCollector::call(), edm::storage::StorageFactory::check(), TritonException::convertToWarning(), DTT0Correction::endJob(), DTVDriftWriter::endJob(), DTTTrigCorrection::endJob(), L1GtUtils::LogicalExpressionL1Results::initialize(), main(), cms::operator<<(), edm::printCmsException(), edm::printCmsExceptionWarning(), CachedTrajectory::propagate(), ConversionVertexFinder::run(), edm::storage::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:189
const edm::EventSetup & c
std::ostringstream ost_
Definition: Exception.h:184
std::string category_
Definition: Exception.h:185
std::list< std::string > context_
Definition: Exception.h:188
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:185
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:184
std::string message() const
Definition: Exception.cc:145
std::string Exception::message ( ) const

Definition at line 145 of file Exception.cc.

References ost_.

Referenced by append(), edm::eventsetup::NoDataExceptionBase::constructMessage(), Exception(), init(), and edm::storage::StorageFactory::open().

145 { return ost_.str(); }
std::ostringstream ost_
Definition: Exception.h:184
Exception & Exception::operator= ( Exception const &  other)

Definition at line 97 of file Exception.cc.

References swap(), and groupFilesInBlocks::temp.

97  {
98  Exception temp(other);
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:189
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:188
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:189
std::ostringstream ost_
Definition: Exception.h:184
std::string category_
Definition: Exception.h:185
void swap(edm::DataFrameContainer &lhs, edm::DataFrameContainer &rhs)
std::list< std::string > context_
Definition: Exception.h:188
bool alreadyPrinted_
Definition: Exception.h:190
std::string what_
Definition: Exception.h:187
char const * Exception::what ( ) const
overridenoexcept

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(), cms::SiPixelPerformanceSummaryBuilder::analyze(), SiPixelLorentzAngleDB::analyze(), SiPixelVCalDB::analyze(), SiPixelDynamicInefficiencyDB::analyze(), AlcaBeamMonitor::analyze(), L1CondDBPayloadWriter::analyze(), cms::SiPixelCondObjBuilder::analyze(), cms::SiPixelCondObjForHLTBuilder::analyze(), cms::SiPixelCondObjOfflineBuilder::analyze(), SiStripSpyMonitorModule::analyze(), PrimaryVertexValidation::analyze(), FWPFCandidateDetailView::build(), FWPFPatJet3DProxyBuilder< T >::build(), FWTrackProxyBuilderFullFramework::build(), FWPFCandidateDetailView::buildGLEventScene(), magneticfield::MagGeoBuilder::buildInterpolator(), MagGeoBuilderFromDDD::buildInterpolator(), CSCSectorReceiverLUT::calcGlobalPhiME(), edm::service::MessageServicePSetValidation::check(), dqmservices::DQMStreamerReader::checkNext(), SiPixelGainCalibScaler::computeAndStorePalyoads(), PhysicsTools::ProcessRegistry< Base_t, CalibBase_t, Parent_t >::Factory::create(), EcalZmassClient::dqmEndJob(), SiPixelLorentzAnglePCLHarvester::dqmEndJob(), FWModelChangeManager::endChanges(), FWFFLooper::endOfLoop(), cond::persistency::Session::fetchPayload(), SiStripMonitorPedestals::fillCondDBMEs(), sistrip::SpyEventMatcherModule::filter(), TrackerOfflineValidationSummary::fitResiduals(), TrackerOfflineValidation::fitResiduals(), EcalLaserCondTools::from_hdf_to_db(), CSCSectorReceiverLUT::getGlobalEtaValue(), CSCSectorReceiverLUT::getGlobalPhiValue(), AlcaBeamMonitor::globalBeginLuminosityBlock(), SiStripConfigDb::handleException(), edm::MessageLoggerQ::handshakedCommand(), L1GtUtils::LogicalExpressionL1Results::initialize(), PhotonConversionTrajectorySeedProducerFromQuadrupletsAlgo::inspect(), SiPixelGainCalibrationOfflineService::isDead(), SiPixelGainCalibrationService::isDead(), SiPixelGainCalibrationOfflineSimService::isDead(), SiPixelGainCalibrationForHLTSimService::isDead(), SiPixelGainCalibrationForHLTService::isDead(), SiPixelGainCalibrationOfflineService::isDeadColumn(), SiPixelGainCalibrationOfflineSimService::isDeadColumn(), SiPixelGainCalibrationForHLTSimService::isDeadColumn(), SiPixelGainCalibrationForHLTService::isDeadColumn(), SiPixelGainCalibrationOfflineService::isNoisy(), SiPixelGainCalibrationService::isNoisy(), SiPixelGainCalibrationOfflineSimService::isNoisy(), SiPixelGainCalibrationForHLTSimService::isNoisy(), SiPixelGainCalibrationForHLTService::isNoisy(), SiPixelGainCalibrationOfflineService::isNoisyColumn(), SiPixelGainCalibrationOfflineSimService::isNoisyColumn(), SiPixelGainCalibrationForHLTSimService::isNoisyColumn(), SiPixelGainCalibrationForHLTService::isNoisyColumn(), main(), dqmservices::DQMStreamerReader::openNextFileImp_(), tfwliteselectortest::ThingsWorker::process(), tfwliteselectortest::ThingsTSelector::process(), cond::XMLAuthenticationService::XMLAuthenticationService::processFile(), EcalLaserCondTools::processIov(), PhotonConversionTrajectorySeedProducerFromQuadruplets::produce(), CastorDigiToRaw::produce(), EcalDCCTBUnpackingModule::produce(), HcalDigiToRaw::produce(), EcalDCCTB07UnpackingModule::produce(), CaloTruthCellsProducer::produce(), HcalRawToDigi::produce(), CSCTFUnpacker::produce(), CastorRawToDigi::produce(), sistrip::FEDEmulatorModule::produce(), PYBIND11_MODULE(), edm::storage::XrdFile::readv(), RecoProducerFP420::RecoProducerFP420(), sistrip::FEDEmulator::retrieveNoises(), sistrip::FEDEmulator::retrievePedestals(), cond::Utilities::run(), edm::service::ThreadSafeLogMessageLoggerScribe::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:187

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

202  {
203  e.ost_ << stuff;
204  return e;
205  }
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 209 of file Exception.h.

209  {
210  f(e.ost_);
211  return e;
212  }
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 216 of file Exception.h.

216  {
217  f(e.ost_);
218  return e;
219  }

Member Data Documentation

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

Definition at line 190 of file Exception.h.

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

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

Definition at line 185 of file Exception.h.

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

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

Definition at line 188 of file Exception.h.

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

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

Definition at line 184 of file Exception.h.

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

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

Definition at line 187 of file Exception.h.

Referenced by swap(), and what().