#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) |
virtual char const * | what () const throw () |
virtual | ~Exception () throw () |
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, E >::value > ::type & | operator<< (E &e, T const &stuff) |
template<typename E , typename T > | |
detail::Desired< E, detail::is_derived_or_same < Exception, E >::value > ::type const & | operator<< (E const &e, T const &stuff) |
template<typename E > | |
detail::Desired< E, detail::is_derived_or_same < Exception, E >::value > ::type & | operator<< (E &e, std::ostream &(*f)(std::ostream &)) |
template<typename E > | |
detail::Desired< E, detail::is_derived_or_same < Exception, E >::value > ::type const & | operator<< (E const &e, std::ostream &(*f)(std::ostream &)) |
template<typename E > | |
detail::Desired< E, detail::is_derived_or_same < Exception, E >::value > ::type & | operator<< (E &e, std::ios_base &(*f)(std::ios_base &)) |
template<typename E > | |
detail::Desired< E, detail::is_derived_or_same < Exception, E >::value > ::type const & | operator<< (E const &e, std::ios_base &(*f)(std::ios_base &)) |
Definition at line 68 of file Exception.h.
|
explicit |
|
explicit |
Definition at line 17 of file Exception.cc.
Exception::Exception | ( | std::string const & | aCategory, |
std::string const & | message | ||
) |
Exception::Exception | ( | char const * | aCategory, |
std::string const & | message | ||
) |
Exception::Exception | ( | std::string const & | aCategory, |
char const * | message | ||
) |
Definition at line 55 of file Exception.cc.
References init(), and AlCaHLTBitMon_QueryRunRegistry::string.
Exception::Exception | ( | char const * | aCategory, |
char const * | message | ||
) |
Definition at line 69 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 | ) |
|
virtual |
Reimplemented in edm::Exception, cond::persistency::Exception, ora::Exception, and popcon::Exception.
Definition at line 121 of file Exception.cc.
void Exception::addAdditionalInfo | ( | std::string const & | info | ) |
Definition at line 235 of file Exception.cc.
References additionalInfo_.
Referenced by XrdAdaptor::RequestManager::addConnections(), XrdAdaptor::ClientRequest::HandleResponse(), edm::Path::handleWorkerFailure(), XrdAdaptor::RequestManager::initialize(), edm::RootInputFileSequence::initTheFile(), StorageFactory::open(), XrdAdaptor::RequestManager::requestFailure(), edm::EventProcessor::runToCompletion(), and XrdAdaptor::RequestManager::splitClientRequest().
void Exception::addAdditionalInfo | ( | char const * | info | ) |
Definition at line 239 of file Exception.cc.
References additionalInfo_, and AlCaHLTBitMon_QueryRunRegistry::string.
void Exception::addContext | ( | std::string const & | context | ) |
Definition at line 227 of file Exception.cc.
References context_.
Referenced by edm::addContextAndPrintException(), edm::eventsetup::ComponentFactory< T >::addTo(), edm::eventsetup::EventSetupRecord::addTraceInfoToCmsException(), L1GlobalTriggerObjectMaps::algorithmResult(), L1GlobalTriggerObjectMaps::AlgorithmResult::AlgorithmResult(), CompareToObjectMapRecord::analyze(), edm::Worker::beginJob(), edm::EventProcessor::beginJob(), edm::Worker::beginStream(), LocalCacheFile::cache(), L1GlobalTriggerObjectMaps::consistencyCheck(), edm::serviceregistry::ServicesManager::createServices(), edm::EDLooperBase::doDuringLoop(), edm::Worker::endJob(), PhysicsTools::MVATrainerLooper::endOfLoop(), edm::Worker::endStream(), edm::Path::exceptionContext(), XrdFile::getActiveFile(), XrdAdaptor::RequestManager::getActiveFile(), L1GlobalTriggerObjectMaps::getCombinationsInCondition(), L1GlobalTriggerObjectMaps::ConditionsInAlgorithm::getConditionResult(), edm::RootTree::getEntry(), L1GlobalTriggerObjectMaps::CombinationsInCondition::getObjectIndex(), edm::eventsetup::DependentRecordImplementation< EcalLaserDbRecord, boost::mpl::vector< EcalLaserAlphasRcd, EcalLaserAPDPNRatiosRefRcd, EcalLaserAPDPNRatiosRcd, EcalLinearCorrectionsRcd > >::getRecord(), L1GlobalTriggerObjectMaps::getStartEndIndex(), XrdAdaptor::Source::handle(), XrdAdaptor::ClientRequest::HandleResponse(), XrdAdaptor::RequestManager::OpenHandler::HandleResponseWithHosts(), edm::BranchDescription::initFromDictionary(), XrdAdaptor::RequestManager::initialize(), edm::RootInputFileSequence::initTheFile(), LocalCacheFile::LocalCacheFile(), edm::makeInput(), nowrite(), DCacheFile::open(), RFIOFile::open(), XrdFile::open(), StorageFactory::open(), XrdAdaptor::RequestManager::OpenHandler::open(), edm::StreamerInputFile::openStreamerFile(), XrdAdaptor::RequestManager::pickSingleSource(), DCacheFile::position(), RFIOFile::position(), XrdFile::position(), edm::StreamSchedule::processOneEvent(), ConvertObjectMapRecord::produce(), DCacheFile::read(), RFIOFile::read(), XrdFile::read(), edm::StreamerInputFile::readBytes(), DCacheFile::readv(), XrdFile::readv(), XrdAdaptor::RequestManager::requestFailure(), XrdFile::resize(), edm::UnscheduledCallProducer::runNow(), edm::GlobalSchedule::runNow(), XrdStorageMaker::setDebugLevel(), DQMRootSource::setupFile(), edm::StreamerInputFile::skipBytes(), XrdAdaptor::RequestManager::splitClientRequest(), DCacheStorageMaker::stagein(), RFIOStorageMaker::stagein(), edm::Maker::throwConfigurationException(), throwStorageError(), edm::Maker::throwValidationException(), edm::UnscheduledCallProducer::tryToFillImpl(), L1GlobalTriggerObjectMaps::updateOperandTokenVector(), edm::eventsetup::validateEventSetupParameters(), DCacheFile::write(), RFIOFile::write(), XrdFile::write(), and edm::RootOutputFile::writeIndexIntoFile().
void Exception::addContext | ( | char const * | context | ) |
Definition at line 231 of file Exception.cc.
References context_, and AlCaHLTBitMon_QueryRunRegistry::string.
std::list< std::string > const & Exception::additionalInfo | ( | ) | const |
Definition at line 195 of file Exception.cc.
References additionalInfo_.
Referenced by edm::RootInputFileSequence::initTheFile().
bool Exception::alreadyPrinted | ( | ) | const |
Definition at line 251 of file Exception.cc.
References alreadyPrinted_.
Referenced by edm::EventProcessor::runToCompletion().
void Exception::append | ( | Exception const & | another | ) |
Definition at line 203 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 BeautifulSoup.Tag::setString().
void Exception::append | ( | std::string const & | more_information | ) |
Definition at line 207 of file Exception.cc.
References ost_.
Referenced by diclist.diclist::add(), and BeautifulSoup.Tag::setString().
void Exception::append | ( | char const * | more_information | ) |
Definition at line 211 of file Exception.cc.
References ost_.
Referenced by diclist.diclist::add(), and BeautifulSoup.Tag::setString().
std::string const & Exception::category | ( | void | ) | const |
Definition at line 183 of file Exception.cc.
References category_.
Referenced by edm::EDLooperBase::doDuringLoop(), edm::Worker::doWork(), edm::Path::handleWorkerFailure(), main(), edm::StreamSchedule::processOneEvent(), edm::WorkerManager::processOneOccurrence(), CachedTrajectory::propagate(), and TrajectoryStateClosestToPoint::TrajectoryStateClosestToPoint().
void Exception::clearAdditionalInfo | ( | ) |
Definition at line 223 of file Exception.cc.
References additionalInfo_.
Referenced by XrdAdaptor::RequestManager::initialize().
void Exception::clearContext | ( | ) |
Definition at line 219 of file Exception.cc.
References context_.
Referenced by XrdAdaptor::RequestManager::initialize().
void Exception::clearMessage | ( | ) |
Definition at line 215 of file Exception.cc.
References ost_.
Referenced by XrdAdaptor::RequestManager::initialize(), StorageFactory::open(), and edm::StreamerInputFile::openStreamerFile().
|
virtual |
Reimplemented in edm::Exception.
Definition at line 259 of file Exception.cc.
References Exception().
Referenced by edm::ExceptionCollector::addException(), and edm::ExceptionCollector::call().
std::list< std::string > const & Exception::context | ( | ) | const |
Definition at line 191 of file Exception.cc.
References context_.
Referenced by edm::StreamSchedule::processOneEvent(), edm::GlobalSchedule::processOneGlobal(), edm::WorkerManager::processOneOccurrence(), edm::StreamSchedule::processOneStream(), and setContext().
|
virtual |
Definition at line 146 of file Exception.cc.
References additionalInfo_, EnergyCorrector::c, category_, context_, KineDebug3::count(), 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 82 of file Exception.cc.
References message(), and ost_.
Referenced by Exception().
std::string Exception::message | ( | ) | const |
Definition at line 187 of file Exception.cc.
References ost_.
Referenced by append(), edm::eventsetup::NoDataExceptionBase::constructMessage(), Exception(), init(), and StorageFactory::open().
|
inline |
Definition at line 105 of file Exception.h.
Referenced by HLTBTagHarvestingAnalyzer::GetNumDenumerators(), edm::es::Label::operator()(), and edm::helper::Filler< Association< C > >::throwFillID().
|
privatevirtual |
Reimplemented in edm::Exception.
Definition at line 263 of file Exception.cc.
int Exception::returnCode | ( | ) | const |
Definition at line 199 of file Exception.cc.
References returnCode_().
Referenced by edm::addContextAndPrintException().
|
privatevirtual |
Reimplemented in edm::Exception.
Definition at line 267 of file Exception.cc.
Referenced by returnCode().
void Exception::setAdditionalInfo | ( | std::list< std::string > const & | info | ) |
Definition at line 247 of file Exception.cc.
References additionalInfo_, and info().
void Exception::setAlreadyPrinted | ( | bool | value | ) |
Definition at line 255 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 243 of file Exception.cc.
References context(), and context_.
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=().
|
virtual |
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::addPixelDet(), MeasurementTrackerImpl::addStripDet(), SiStripDetVOffFakeBuilder::analyze(), L1CondDBPayloadWriterExt::analyze(), TrackerSeedValidator::analyze(), AlcaBeamMonitor::analyze(), L1CondDBPayloadWriter::analyze(), sistrip::SpyIdentifyRunsModule::analyze(), SiStripSpyMonitorModule::analyze(), PrimaryVertexValidation::analyze(), AlcaBeamMonitor::beginLuminosityBlock(), GeometricSearchTrackerBuilder::build(), 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::SpyUnpacker::createDigis(), sistrip::RawToDigiUnpacker::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(), edm::EventProcessor::forkProcess(), 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(), SiPixelGainCalibrationForHLTSimService::isNoisyColumn(), SiPixelGainCalibrationOfflineSimService::isNoisyColumn(), SiPixelGainCalibrationForHLTService::isNoisyColumn(), 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(), edm::service::ThreadSafeLogMessageLoggerScribe::runCommand(), edm::service::MessageLoggerScribe::runCommand(), FWPathsPopup::scheduleReloadEvent(), dqmservices::DQMStreamerReader::skip(), edm::convertException::stdToEDM(), cond::persistency::Session::storePayload(), SiStripPedestalsSubtractor::subtract_(), and DTCalibDBUtils::writeToDB().
|
friend |
Definition at line 229 of file Exception.h.
|
friend |
Definition at line 238 of file Exception.h.
|
friend |
Definition at line 248 of file Exception.h.
|
friend |
Definition at line 257 of file Exception.h.
|
friend |
Definition at line 267 of file Exception.h.
|
friend |
Definition at line 277 of file Exception.h.
|
private |
Definition at line 212 of file Exception.h.
Referenced by addAdditionalInfo(), additionalInfo(), clearAdditionalInfo(), explainSelf(), setAdditionalInfo(), and swap().
|
private |
Definition at line 213 of file Exception.h.
Referenced by alreadyPrinted(), setAlreadyPrinted(), and swap().
|
private |
Definition at line 209 of file Exception.h.
Referenced by category(), explainSelf(), history(), and swap().
|
private |
Definition at line 211 of file Exception.h.
Referenced by addContext(), clearContext(), context(), explainSelf(), setContext(), and swap().
|
private |
Definition at line 208 of file Exception.h.
Referenced by append(), clearMessage(), Exception(), explainSelf(), init(), message(), and swap().
|
mutableprivate |
Definition at line 210 of file Exception.h.