#include <Exception.h>
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 Exception * | clone () 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 |
Exception & | operator= (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 >::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 &)) |
Definition at line 68 of file Exception.h.
|
explicit |
Definition at line 6 of file Exception.cc.
Referenced by clone().
|
explicit |
Definition at line 9 of file Exception.cc.
Exception::Exception | ( | std::string const & | aCategory, |
std::string const & | message | ||
) |
Definition at line 18 of file Exception.cc.
References init().
Exception::Exception | ( | char const * | aCategory, |
std::string const & | message | ||
) |
Exception::Exception | ( | std::string const & | aCategory, |
char const * | message | ||
) |
Definition at line 34 of file Exception.cc.
References init(), and AlCaHLTBitMon_QueryRunRegistry::string.
Exception::Exception | ( | char const * | aCategory, |
char const * | message | ||
) |
Definition at line 39 of file Exception.cc.
References init(), and AlCaHLTBitMon_QueryRunRegistry::string.
Exception::Exception | ( | std::string const & | aCategory, |
std::string const & | message, | ||
Exception const & | another | ||
) |
Exception::Exception | ( | Exception const & | other | ) |
|
override |
Definition at line 86 of file Exception.cc.
void Exception::addAdditionalInfo | ( | std::string const & | info | ) |
Definition at line 169 of file Exception.cc.
References additionalInfo_.
Referenced by XrdAdaptor::RequestManager::addConnections(), XrdAdaptor::ClientRequest::HandleResponse(), edm::Path::handleWorkerFailure(), XrdAdaptor::RequestManager::initialize(), edm::RootInputFileSequence::initTheFile(), edm::service::isProcessWideService(), StorageFactory::open(), XrdAdaptor::RequestManager::requestFailure(), edm::EventProcessor::runToCompletion(), and XrdAdaptor::RequestManager::splitClientRequest().
void Exception::addAdditionalInfo | ( | char const * | info | ) |
Definition at line 171 of file Exception.cc.
References additionalInfo_, and AlCaHLTBitMon_QueryRunRegistry::string.
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().
void Exception::addContext | ( | char const * | context | ) |
Definition at line 167 of file Exception.cc.
References context_, and AlCaHLTBitMon_QueryRunRegistry::string.
std::list< std::string > const & Exception::additionalInfo | ( | ) | const |
Definition at line 149 of file Exception.cc.
References additionalInfo_.
Referenced by edm::RootInputFileSequence::initTheFile().
bool Exception::alreadyPrinted | ( | ) | const |
Definition at line 177 of file Exception.cc.
References alreadyPrinted_.
Referenced by edm::EventProcessor::runToCompletion().
void Exception::append | ( | Exception const & | another | ) |
Definition at line 153 of file Exception.cc.
References message(), and ost_.
Referenced by diclist.diclist::add(), edm::eventsetup::NoDataExceptionBase::constructMessage(), Exception(), StripClusterizerAlgorithm::InvalidChargeException::InvalidChargeException(), edm::eventsetup::MakeDataException::MakeDataException(), edm::eventsetup::makeEventSetupProvider(), and edm::TypeID::print().
void Exception::append | ( | std::string const & | more_information | ) |
void Exception::append | ( | char const * | more_information | ) |
std::string const & Exception::category | ( | void | ) | const |
Definition at line 143 of file Exception.cc.
References category_.
Referenced by edm::EDLooperBase::doDuringLoop(), edm::StreamSchedule::finishedPaths(), edm::Path::handleWorkerFailure(), main(), CachedTrajectory::propagate(), edm::Worker::shouldRethrowException(), and TrajectoryStateClosestToPoint::TrajectoryStateClosestToPoint().
void Exception::clearAdditionalInfo | ( | ) |
Definition at line 163 of file Exception.cc.
References additionalInfo_.
Referenced by XrdAdaptor::RequestManager::initialize().
void Exception::clearContext | ( | ) |
Definition at line 161 of file Exception.cc.
References context_.
Referenced by XrdAdaptor::RequestManager::initialize().
void Exception::clearMessage | ( | ) |
Definition at line 159 of file Exception.cc.
References ost_.
Referenced by XrdAdaptor::RequestManager::initialize(), StorageFactory::open(), and edm::StreamerInputFile::openStreamerFile().
|
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().
std::list< std::string > const & Exception::context | ( | ) | const |
Definition at line 147 of file Exception.cc.
References context_.
Referenced by edm::StreamSchedule::finishedPaths(), edm::StreamSchedule::finishProcessOneEvent(), edm::Path::handleWorkerFailure(), edm::GlobalSchedule::processOneGlobalAsync(), edm::WorkerManager::processOneOccurrence(), edm::StreamSchedule::processOneStreamAsync(), and setContext().
|
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().
std::list< std::string > Exception::history | ( | ) | const |
|
private |
Definition at line 50 of file Exception.cc.
References message(), and ost_.
Referenced by Exception().
std::string Exception::message | ( | ) | const |
Definition at line 145 of file Exception.cc.
References ost_.
Referenced by append(), edm::eventsetup::NoDataExceptionBase::constructMessage(), Exception(), AlignmentProducerBase::hasParameter(), init(), StorageFactory::open(), and cond::persistency::Exception::~Exception().
|
inline |
Definition at line 98 of file Exception.h.
References mps_setup::append, clone(), MillePedeFileConverter_cfg::e, f, info(), init, cms::operator<<(), AlCaHLTBitMon_QueryRunRegistry::string, and relativeConstraints::value.
Referenced by edm::service::MessageLoggerScribe::getAparameter(), HLTBTagHarvestingAnalyzer::GetNumDenumerators(), edm::Path::handleWorkerFailure(), edm::es::Label::operator()(), and edm::helper::Filler< Association< C > >::throwFillID().
|
privatevirtual |
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().
|
privatevirtual |
Reimplemented in edm::Exception, and edm::MultipleException.
Definition at line 185 of file Exception.cc.
Referenced by returnCode().
void Exception::setAdditionalInfo | ( | std::list< std::string > const & | info | ) |
Definition at line 175 of file Exception.cc.
References additionalInfo_, and info().
void Exception::setAlreadyPrinted | ( | bool | value | ) |
Definition at line 179 of file Exception.cc.
References alreadyPrinted_, and relativeConstraints::value.
Referenced by edm::addContextAndPrintException().
void Exception::setContext | ( | std::list< std::string > const & | context | ) |
Definition at line 173 of file Exception.cc.
References context(), and context_.
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=().
|
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().
|
friend |
Definition at line 198 of file Exception.h.
|
friend |
Definition at line 205 of file Exception.h.
|
friend |
Definition at line 212 of file Exception.h.
|
private |
Definition at line 185 of file Exception.h.
Referenced by addAdditionalInfo(), additionalInfo(), clearAdditionalInfo(), explainSelf(), setAdditionalInfo(), and swap().
|
private |
Definition at line 186 of file Exception.h.
Referenced by alreadyPrinted(), setAlreadyPrinted(), and swap().
|
private |
Definition at line 182 of file Exception.h.
Referenced by category(), explainSelf(), history(), and swap().
|
private |
Definition at line 184 of file Exception.h.
Referenced by addContext(), clearContext(), context(), explainSelf(), setContext(), and swap().
|
private |
Definition at line 181 of file Exception.h.
Referenced by append(), clearMessage(), Exception(), explainSelf(), init(), message(), and swap().
|
mutableprivate |
Definition at line 183 of file Exception.h.