#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 noexcept override |
~Exception () noexcept 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 70 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(), and message().
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(), message(), and AlCaHLTBitMon_QueryRunRegistry::string.
Exception::Exception | ( | char const * | aCategory, |
char const * | message | ||
) |
Definition at line 39 of file Exception.cc.
References init(), message(), and AlCaHLTBitMon_QueryRunRegistry::string.
Exception::Exception | ( | std::string const & | aCategory, |
std::string const & | message, | ||
Exception const & | another | ||
) |
Exception::Exception | ( | Exception const & | other | ) |
|
overridenoexcept |
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_, and info().
Referenced by edm::ThinnedAssociationsHelper::addAssociation(), XrdAdaptor::RequestManager::addConnections(), edm::detail::annotateResolverMakerExceptionAndRethrow(), XrdAdaptor::ClientRequest::HandleResponse(), XrdAdaptor::RequestManager::initialize(), edm::RootInputFileSequence::initTheFile(), operator<<(), DQMRootSource::readFile_(), XrdAdaptor::RequestManager::requestFailure(), and XrdAdaptor::RequestManager::splitClientRequest().
void Exception::addAdditionalInfo | ( | char const * | info | ) |
Definition at line 171 of file Exception.cc.
References additionalInfo_, info(), and AlCaHLTBitMon_QueryRunRegistry::string.
void Exception::addContext | ( | std::string const & | context | ) |
Definition at line 165 of file Exception.cc.
References context(), and context_.
Referenced by edm::storage::DavixFile::abort(), edm::ThinnedAssociationsHelper::addAssociation(), edm::addContextAndPrintException(), edm::UnscheduledCallProducer::addContextToException(), edm::ProductRegistry::addElementTypesForAliases(), edm::eventsetup::ComponentFactory< T >::addTo(), edm::eventsetup::ComponentMaker< edm::eventsetup::LooperMakerTraits, TType >::addTo(), 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(), ALPAKA_ACCELERATOR_NAMESPACE::detail::chooseDevice(), cms::cuda::chooseDevice(), cms::alpakatools::chooseDevice(), edm::storage::DavixFile::close(), L1GlobalTriggerObjectMaps::consistencyCheck(), edm::serviceregistry::ServicesManager::createServiceFor(), edm::service::SiteLocalConfigService::dataCatalogs(), edm::Worker::endJob(), edm::Worker::endStream(), edm::exceptionContext(), edm::Path::exceptionContext(), edm::Schedule::fillModuleAndConsumesInfo(), edm::InputFileCatalog::findFile(), edm::StreamSchedule::finishedPaths(), edm::storage::XrdFile::getActiveFile(), XrdAdaptor::RequestManager::getActiveFile(), L1GlobalTriggerObjectMaps::getCombinationsInCondition(), L1GlobalTriggerObjectMaps::ConditionsInAlgorithm::getConditionResult(), L1GlobalTriggerObjectMaps::CombinationsInCondition::getObjectIndex(), edm::eventsetup::DependentRecordImplementation< EcalMappingRcd, edm::mpl::Vector< EcalMappingElectronicsRcd > >::getRecord(), L1GlobalTriggerObjectMaps::getStartEndIndex(), fwlite::DataGetterHelper::getThinnedKeyFrom(), BareRootProductGetter::getThinnedKeyFrom(), edm::EventPrincipal::getThinnedKeyFrom(), edm::shared_memory::WriteBuffer::growBuffer(), XrdAdaptor::Source::handle(), XrdAdaptor::RequestManager::handle(), XrdAdaptor::ClientRequest::HandleResponse(), XrdAdaptor::RequestManager::OpenHandler::HandleResponseWithHosts(), edm::FileLocator::init(), edm::InputFileCatalog::init(), edm::BranchDescription::initFromDictionary(), XrdAdaptor::RequestManager::initialize(), edm::RootInputFileSequence::initTheFile(), l1t::L1TGlobalUtilHelper::L1TGlobalUtilHelper(), edm::storage::LocalCacheFile::LocalCacheFile(), edm::makeInput(), nowrite(), edm::storage::DCacheFile::open(), edm::storage::DavixFile::open(), edm::storage::XrdFile::open(), XrdAdaptor::RequestManager::OpenHandler::open(), edm::StreamerInputFile::openStreamerFile(), operator<<(), edm::service::SiteLocalConfigService::parse(), XrdAdaptor::RequestManager::pickSingleSource(), edm::storage::DavixFile::position(), edm::storage::DCacheFile::position(), edm::storage::XrdFile::position(), ConvertObjectMapRecord::produce(), edm::storage::DavixFile::read(), edm::storage::DCacheFile::read(), edm::storage::XrdFile::read(), DQMTTreeIO::TreeObjectReader< T >::read(), edm::StreamerInputFile::readBytes(), DQMRootSource::readFile_(), edm::storage::DCacheFile::readv(), edm::storage::DavixFile::readv(), edm::storage::XrdFile::readv(), edm::Worker::registerThinnedAssociations(), XrdAdaptor::RequestManager::requestFailure(), edm::storage::DavixFile::resize(), edm::storage::XrdFile::resize(), edm::storage::XrdStorageMaker::setDebugLevel(), edm::StreamerInputFile::skipBytes(), XrdAdaptor::RequestManager::splitClientRequest(), edm::storage::DCacheStorageMaker::stagein(), edm::service::SiteLocalConfigService::storageDescriptionPath(), edm::Maker::throwConfigurationException(), throwStorageError(), edm::Maker::throwValidationException(), edm::service::SiteLocalConfigService::trivialDataCatalogs(), L1GlobalTriggerObjectMaps::updateOperandTokenVector(), edm::validateTopLevelParameterSets(), edm::storage::DCacheFile::write(), edm::storage::DavixFile::write(), edm::storage::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(), context_, and AlCaHLTBitMon_QueryRunRegistry::string.
std::list< std::string > const & Exception::additionalInfo | ( | ) | const |
bool Exception::alreadyPrinted | ( | ) | const |
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(), and edm::eventsetup::makeEventSetupProvider().
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 TritonException::convertToWarning(), 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(), 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::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 addContext(), edm::StreamSchedule::finishedPaths(), edm::StreamSchedule::finishProcessOneEvent(), edm::GlobalSchedule::processOneGlobalAsync(), edm::StreamSchedule::processOneStreamAsync(), setContext(), and edm::SecondaryEventProvider::setupPileUpEvent().
|
virtual |
Definition at line 108 of file Exception.cc.
References additionalInfo_, HltBtagPostValidation_cff::c, category_, context_, submitPVResolutionJobs::count, mps_fire::i, ost_, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by edm::ExceptionCollector::call(), TritonException::convertToWarning(), L1GtUtils::LogicalExpressionL1Results::initialize(), CachedTrajectory::propagate(), TrajectoryStateClosestToPoint::TrajectoryStateClosestToPoint(), 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(), and init().
Definition at line 97 of file Exception.cc.
References trackingPlots::other, swap(), and groupFilesInBlocks::temp.
|
inline |
Definition at line 101 of file Exception.h.
Referenced by HLTBTagHarvestingAnalyzer::GetNumDenumerators().
|
privatevirtual |
int Exception::returnCode | ( | ) | const |
Definition at line 151 of file Exception.cc.
References returnCode_().
Referenced by edm::addContextAndPrintException(), 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 | ) |
void Exception::swap | ( | Exception & | other | ) |
Definition at line 88 of file Exception.cc.
References additionalInfo_, alreadyPrinted_, category_, context_, ost_, trackingPlots::other, std::swap(), and what_.
Referenced by operator=().
|
overridenoexcept |
Definition at line 103 of file Exception.cc.
References explainSelf(), and what_.
Referenced by L1CondDBPayloadWriterExt::analyze(), SiStripDetVOffFakeBuilder::analyze(), SiPixelLorentzAngleDB::analyze(), SiPixelVCalDB::analyze(), SiPixelDynamicInefficiencyDB::analyze(), DiMuonVertexMonitor::analyze(), L1CondDBPayloadWriter::analyze(), cms::SiPixelCondObjBuilder::analyze(), cms::SiPixelCondObjForHLTBuilder::analyze(), cms::SiPixelCondObjOfflineBuilder::analyze(), PrimaryVertexValidation::analyze(), FWPFCandidateDetailView::build(), FWPFPatJet3DProxyBuilder< reco::PFJet >::build(), FWPFCandidateDetailView::buildGLEventScene(), magneticfield::MagGeoBuilder::buildInterpolator(), MagGeoBuilderFromDDD::buildInterpolator(), SiPixelGainCalibScaler::computeAndStorePalyoads(), SiPixelLorentzAnglePCLHarvester::dqmEndJob(), SiPixelLorentzAnglePCLHarvesterMCS::dqmEndJob(), FWModelChangeManager::endChanges(), edm::shared_memory::WriteBuffer::growBuffer(), edm::MessageLoggerQ::handshakedCommand(), L1GtUtils::LogicalExpressionL1Results::initialize(), PhotonConversionTrajectorySeedProducerFromQuadrupletsAlgo::inspect(), main(), Vx3DHLTAnalyzer::MyFit(), cond::XMLAuthenticationService::XMLAuthenticationService::processFile(), PhotonConversionTrajectorySeedProducerFromQuadruplets::produce(), CaloTruthCellsProducer::produce(), edm::storage::XrdFile::readv(), and DTCalibDBUtils::writeToDB().
|
friend |
Definition at line 202 of file Exception.h.
|
friend |
Definition at line 209 of file Exception.h.
|
friend |
Definition at line 216 of file Exception.h.
|
private |
Definition at line 189 of file Exception.h.
Referenced by addAdditionalInfo(), additionalInfo(), clearAdditionalInfo(), explainSelf(), setAdditionalInfo(), and swap().
|
private |
Definition at line 190 of file Exception.h.
Referenced by alreadyPrinted(), setAlreadyPrinted(), and swap().
|
private |
Definition at line 185 of file Exception.h.
Referenced by category(), explainSelf(), history(), and swap().
|
private |
Definition at line 188 of file Exception.h.
Referenced by addContext(), clearContext(), context(), explainSelf(), setContext(), and swap().
|
private |
Definition at line 184 of file Exception.h.
Referenced by append(), clearMessage(), Exception(), explainSelf(), init(), message(), and swap().
|
mutableprivate |
Definition at line 187 of file Exception.h.