#include <Exception.h>
Public Types | |
typedef std::string | Category |
typedef std::list< Category > | CategoryList |
Public Member Functions | |
void | append (Exception const &another) |
void | append (std::string const &more_information) |
void | append (char const *more_information) |
std::string | category () const |
Exception (Category const &category) | |
Exception (Category const &category, std::string const &message) | |
Exception (Exception const &other) | |
Exception (Category const &category, std::string const &message, Exception const &another) | |
virtual std::string | explainSelf () const |
CategoryList const & | history () const |
void | raise () |
std::string | rootCause () const |
virtual char const * | what () const throw () |
virtual | ~Exception () throw () |
Private Member Functions | |
virtual std::exception * | clone () const |
virtual void | rethrow () |
Private Attributes | |
CategoryList | category_ |
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 > | |
detail::Desired< E, detail::is_derived_or_same < Exception, E >::value > ::type const & | operator<< (E const &e, std::ios_base &(*f)(std::ios_base &)) |
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::ostream &(*f)(std::ostream &)) |
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 , typename T > | |
detail::Desired< E, detail::is_derived_or_same < Exception, E >::value > ::type const & | operator<< (E const &e, T const &stuff) |
Definition at line 104 of file Exception.h.
typedef std::string cms::Exception::Category |
Definition at line 106 of file Exception.h.
typedef std::list<Category> cms::Exception::CategoryList |
Definition at line 107 of file Exception.h.
Exception::Exception | ( | Category const & | category | ) | [explicit] |
Reimplemented in cond::Exception, and popcon::Exception.
Definition at line 6 of file Exception.cc.
Referenced by clone().
: std::exception(), ost_(), category_(1, aCategory), what_() { }
Exception::Exception | ( | Category const & | category, |
std::string const & | message | ||
) |
Reimplemented in ora::Exception.
Definition at line 14 of file Exception.cc.
References argparse::message, and ost_.
Exception::Exception | ( | Category const & | category, |
std::string const & | message, | ||
Exception const & | another | ||
) |
Definition at line 28 of file Exception.cc.
References append(), category(), category_, argparse::message, and ost_.
Exception::Exception | ( | Exception const & | other | ) |
Definition at line 44 of file Exception.cc.
References ost_.
: std::exception(), ost_(), category_(other.category_), what_(other.what_) { ost_ << other.ost_.str(); }
Exception::~Exception | ( | ) | throw () [virtual] |
Reimplemented in cond::Exception, ora::Exception, popcon::Exception, and edm::Exception.
Definition at line 53 of file Exception.cc.
{ }
void Exception::append | ( | Exception const & | another | ) |
Definition at line 82 of file Exception.cc.
References explainSelf(), and ost_.
Referenced by edm::eventsetup::ComponentFactory< T >::addTo(), edm::eventsetup::NoDataExceptionBase::constructMessage(), edm::serviceregistry::ServicesManager::createServices(), Exception(), StripClusterizerAlgorithm::InvalidChargeException::InvalidChargeException(), edm::eventsetup::MakeDataException::MakeDataException(), edm::eventsetup::makeEventSetupProvider(), edm::makeInput(), edm::Maker::throwConfigurationException(), and edm::eventsetup::validateEventSetupParameters().
{ ost_ << another.explainSelf(); }
void Exception::append | ( | std::string const & | more_information | ) |
void Exception::append | ( | char const * | more_information | ) |
std::string Exception::category | ( | ) | const |
Definition at line 74 of file Exception.cc.
References category_.
Referenced by edm::DaqSource::DaqSource(), edm::EDLooperBase::doDuringLoop(), Exception(), explainSelf(), edm::Path::handleWorkerFailure(), main(), edm::Schedule::processOneOccurrence(), CachedTrajectory::propagate(), edm::EventProcessor::readAndProcessEvent(), and TrajectoryStateClosestToPoint::TrajectoryStateClosestToPoint().
{ return category_.front(); }
std::exception * Exception::clone | ( | void | ) | const [private, virtual] |
Reimplemented in Fastexception, BaseGenexception, and Genexception.
Definition at line 102 of file Exception.cc.
References Exception().
{ return new Exception(*this); }
std::string Exception::explainSelf | ( | void | ) | const [virtual] |
Reimplemented in CMSexception, and Fastexception.
Definition at line 56 of file Exception.cc.
References category(), and ost_.
Referenced by append(), edm::EventProcessor::asyncRun(), ConvertedPhotonProducer::buildCollections(), StorageFactory::check(), evf::FUEventProcessor::configuring(), evf::FUEventProcessor::enableCommon(), DTVDriftWriter::endJob(), edm::Schedule::endJob(), DTTTrigCorrection::endJob(), edm::roottree::getEntry(), stor::StorageManager::handleFSMSoapMessage(), smproxy::SMProxyServer::handleFSMSoapMessage(), evf::FWEPWrapper::init(), edm::RootInputFileSequence::initFile(), edm::StreamerInputFile::openStreamerFile(), cms::operator<<(), edm::printCmsException(), CachedTrajectory::propagate(), edm::StreamerInputFile::readBytes(), ConversionVertexFinder::run(), edm::StreamerInputFile::skipBytes(), StorageFactory::stagein(), evf::FWEPWrapper::stop(), TrajectoryStateClosestToPoint::TrajectoryStateClosestToPoint(), MuonUpdatorAtVertex::update(), what(), edm::EventProcessor::~EventProcessor(), statemachine::HandleLumis::~HandleLumis(), and statemachine::HandleRuns::~HandleRuns().
Exception::CategoryList const & Exception::history | ( | ) | const |
Definition at line 70 of file Exception.cc.
References category_.
Referenced by cms::TrackListMerger::produce().
{ return category_; }
void cms::Exception::raise | ( | ) | [inline] |
Definition at line 128 of file Exception.h.
References rethrow().
Referenced by edm::eventsetup::ComponentFactory< T >::addTo(), edm::Event::getByLabel(), edm::es::Label::operator()(), and edm::helper::Filler< Association< C > >::throwFillID().
{rethrow();}
void Exception::rethrow | ( | void | ) | [private, virtual] |
Reimplemented in edm::Exception, Fastexception, BaseGenexception, and Genexception.
Definition at line 106 of file Exception.cc.
Referenced by raise().
{ throw *this; }
std::string Exception::rootCause | ( | ) | const |
Definition at line 78 of file Exception.cc.
References category_.
Referenced by edm::EDLooperBase::doDuringLoop(), edm::Worker::doWork(), edm::Path::handleWorkerFailure(), edm::Schedule::processOneOccurrence(), and edm::EventProcessor::readAndProcessEvent().
{ return category_.back(); }
char const * Exception::what | ( | ) | const throw () [virtual] |
Reimplemented in CMSexception, Fastexception, and BaseGenexception.
Definition at line 97 of file Exception.cc.
References explainSelf(), and what_.
Referenced by AdaptiveVertexReconstructor::AdaptiveVertexReconstructor(), MeasurementTracker::addStripDet(), sistrip::SpyIdentifyRunsModule::analyze(), MultiTrackValidator::analyze(), SiPixelLorentzAngleDB::analyze(), MuonTrackValidator::analyze(), SiStripDetVOffFakeBuilder::analyze(), AlcaBeamMonitor::analyze(), L1CondDBPayloadWriter::analyze(), PrimaryVertexValidation::analyze(), SiStripSpyMonitorModule::analyze(), evf::FUEventProcessor::attachDqmToShm(), AlcaBeamMonitor::beginLuminosityBlock(), GeometricSearchTrackerBuilder::build(), MagGeoBuilderFromDDD::buildInterpolator(), LocalCacheFile::cache(), CSCSectorReceiverLUT::calcGlobalPhiME(), edm::ExceptionCollector::call(), edm::service::MessageServicePSetValidation::check(), FWBeamSpot::checkBeamSpot(), PhysicsTools::ProcessRegistry< Base_t, CalibBase_t, Parent_t >::Factory::create(), sistrip::RawToDigiUnpacker::createDigis(), sistrip::SpyUnpacker::createDigis(), evf::FUEventProcessor::detachDqmFromShm(), edm::EDLooperBase::doDuringLoop(), edm::Worker::doWork(), UncatchedException::dump(), FWModelChangeManager::endChanges(), edm::Schedule::endJob(), exceptionTranslation(), sistrip::RawToClustersLazyUnpacker::fill(), SiStripMonitorPedestals::fillCondDBMEs(), SiStripThresholdDQM::fillMEsForDet(), SiStripQualityDQM::fillMEsForDet(), SiStripPedestalsDQM::fillMEsForDet(), SiStripNoisesDQM::fillMEsForDet(), SiStripApvGainsDQM::fillMEsForDet(), SiStripLorentzAngleDQM::fillMEsForLayer(), SiStripQualityDQM::fillMEsForLayer(), SiStripApvGainsDQM::fillMEsForLayer(), SiStripThresholdDQM::fillMEsForLayer(), SiStripPedestalsDQM::fillMEsForLayer(), SiStripNoisesDQM::fillMEsForLayer(), NuclearVertexBuilder::FillVertexWithAdaptVtxFitter(), LaserAlignmentEventFilter::filter(), TrackerOfflineValidation::fitResiduals(), TrackerOfflineValidationSummary::fitResiduals(), edm::EventProcessor::forkProcess(), CSCSectorReceiverLUT::getGlobalEtaValue(), CSCSectorReceiverLUT::getGlobalPhiValue(), HcalO2OManager::getListOfPoolIovs(), HcalO2OManager::getListOfPoolTags(), SiStripConfigDb::handleException(), edm::Path::handleWorkerFailure(), edm::MessageLoggerQ::handshakedCommand(), stor::EventConsumerSelector::initialize(), stor::EventStreamSelector::initialize(), SiPixelGainCalibrationService::isDead(), SiPixelGainCalibrationOfflineService::isDead(), SiPixelGainCalibrationForHLTSimService::isDead(), SiPixelGainCalibrationOfflineSimService::isDead(), SiPixelGainCalibrationForHLTService::isDead(), SiPixelGainCalibrationOfflineSimService::isDeadColumn(), SiPixelGainCalibrationOfflineService::isDeadColumn(), SiPixelGainCalibrationForHLTSimService::isDeadColumn(), SiPixelGainCalibrationForHLTService::isDeadColumn(), SiPixelGainCalibrationOfflineService::isNoisy(), SiPixelGainCalibrationForHLTSimService::isNoisy(), SiPixelGainCalibrationForHLTService::isNoisy(), SiPixelGainCalibrationService::isNoisy(), SiPixelGainCalibrationOfflineSimService::isNoisy(), SiPixelGainCalibrationForHLTSimService::isNoisyColumn(), SiPixelGainCalibrationOfflineSimService::isNoisyColumn(), SiPixelGainCalibrationForHLTService::isNoisyColumn(), SiPixelGainCalibrationOfflineService::isNoisyColumn(), main(), cond::BasePayloadProxy::make(), evf::FUEventProcessor::microState(), tfwliteselectortest::ThingsTSelector::process(), tfwliteselectortest::ThingsWorker::process(), cond::XMLAuthenticationService::XMLAuthenticationService::processFile(), edm::Schedule::processOneOccurrence(), SoftElectronProducer::produce(), HcalRawToDigi::produce(), EcalDCCTB07UnpackingModule::produce(), sistrip::FEDEmulatorModule::produce(), CSCTFUnpacker::produce(), EcalDCCTBUnpackingModule::produce(), HcalDigiToRaw::produce(), sistrip::SpyEventSummaryProducer::produce(), CastorDigiToRaw::produce(), CastorRawToDigi::produce(), edm::EventProcessor::readAndProcessEvent(), RecoProducerFP420::RecoProducerFP420(), sistrip::FEDEmulator::retrieveNoises(), sistrip::FEDEmulator::retrievePedestals(), cond::Utilities::run(), KalmanAlignmentAlgorithm::run(), edm::service::MessageLoggerScribe::runCommand(), FWPathsPopup::scheduleReloadEvent(), SiStripPedestalsSubtractor::subtract_(), and DTCalibDBUtils::writeToDB().
{ what_ = explainSelf(); return what_.c_str(); }
detail::Desired<E, detail::is_derived_or_same<Exception,E>::value>::type& operator<< | ( | E & | e, |
T const & | stuff | ||
) | [friend] |
Definition at line 228 of file Exception.h.
{
e.ost_ << stuff;
return e;
}
detail::Desired<E, detail::is_derived_or_same<Exception,E>::value>::type const& operator<< | ( | E const & | e, |
std::ios_base &(*)(std::ios_base &) | f | ||
) | [friend] |
Definition at line 276 of file Exception.h.
{ E& ref = const_cast<E&>(e); f(ref.ost_); return e; }
detail::Desired<E, detail::is_derived_or_same<Exception,E>::value>::type& operator<< | ( | E & | e, |
std::ios_base &(*)(std::ios_base &) | f | ||
) | [friend] |
Definition at line 266 of file Exception.h.
{ f(e.ost_); return e; }
detail::Desired<E, detail::is_derived_or_same<Exception,E>::value>::type const& operator<< | ( | E const & | e, |
std::ostream &(*)(std::ostream &) | f | ||
) | [friend] |
Definition at line 256 of file Exception.h.
{ E& ref = const_cast<E&>(e); f(ref.ost_); return e; }
detail::Desired<E, detail::is_derived_or_same<Exception,E>::value>::type& operator<< | ( | E & | e, |
std::ostream &(*)(std::ostream &) | f | ||
) | [friend] |
Definition at line 247 of file Exception.h.
{ f(e.ost_); return e; }
detail::Desired<E, detail::is_derived_or_same<Exception,E>::value>::type const& operator<< | ( | E const & | e, |
T const & | stuff | ||
) | [friend] |
Definition at line 237 of file Exception.h.
{ E& ref = const_cast<E&>(e); ref.ost_ << stuff; return e; }
CategoryList cms::Exception::category_ [private] |
Reimplemented in edm::CodedException< Code >, and edm::Exception.
Definition at line 210 of file Exception.h.
Referenced by category(), Exception(), history(), and rootCause().
std::ostringstream cms::Exception::ost_ [private] |
Definition at line 209 of file Exception.h.
Referenced by append(), Exception(), and explainSelf().
std::string cms::Exception::what_ [mutable, private] |
Definition at line 211 of file Exception.h.
Referenced by what().