#include <EDMException.h>
Public Types | |
typedef errors::ErrorCodes | Code |
typedef std::map< Code, std::string > | CodeMap |
Public Member Functions | |
Code | categoryCode () const |
virtual Exception * | clone () const |
Exception (Code category, char const *message, cms::Exception const &another) | |
Exception (Code category, std::string const &message) | |
Exception (Code category, std::string const &message, cms::Exception const &another) | |
Exception (Code category) | |
Exception (Exception const &other) | |
Exception (Code category, char const *message) | |
Exception & | operator= (Exception const &other) |
void | swap (Exception &other) |
virtual | ~Exception () throw () |
Static Public Member Functions | |
static std::string | codeToString (Code) |
-------------- implementation details ------------------ | |
static void | throwThis (Code category, char const *message0, int intVal, char const *message2="") |
static void | throwThis (Code category, char const *message0="", char const *message1="", char const *message2="", char const *message3="", char const *message4="") |
Private Member Functions | |
virtual void | rethrow () |
virtual int | returnCode_ () const |
Private Attributes | |
Code | category_ |
Definition at line 74 of file EDMException.h.
Definition at line 76 of file EDMException.h.
typedef std::map<Code, std::string> edm::Exception::CodeMap |
Definition at line 100 of file EDMException.h.
Exception::Exception | ( | Code | category | ) | [explicit] |
Definition at line 63 of file EDMException.cc.
Referenced by clone().
: cms::Exception(codeToString(aCategory)), category_(aCategory) { }
Exception::Exception | ( | Code | category, |
std::string const & | message | ||
) |
Definition at line 68 of file EDMException.cc.
: cms::Exception(codeToString(aCategory),message), category_(aCategory) { }
Exception::Exception | ( | Code | category, |
char const * | message | ||
) |
Definition at line 73 of file EDMException.cc.
: cms::Exception(codeToString(aCategory), std::string(message)), category_(aCategory) { }
Exception::Exception | ( | Code | category, |
std::string const & | message, | ||
cms::Exception const & | another | ||
) |
Definition at line 78 of file EDMException.cc.
: cms::Exception(codeToString(aCategory),message,another), category_(aCategory) { }
Exception::Exception | ( | Code | category, |
char const * | message, | ||
cms::Exception const & | another | ||
) |
Definition at line 83 of file EDMException.cc.
: cms::Exception(codeToString(aCategory), std::string(message), another), category_(aCategory) { }
Exception::Exception | ( | Exception const & | other | ) |
Definition at line 88 of file EDMException.cc.
: cms::Exception(other), category_(other.category_) { }
Exception::~Exception | ( | ) | throw () [virtual] |
Code edm::Exception::categoryCode | ( | ) | const [inline] |
Definition at line 96 of file EDMException.h.
Referenced by TStorageFactoryFile::Initialize(), pat::TriggerObject::origL1EmRef(), pat::TriggerObject::origL1EtMissRef(), pat::TriggerObject::origL1JetRef(), pat::TriggerObject::origL1MuonRef(), pat::helper::RefHelper< T >::parentOrNull(), and pat::helper::RefHelper< T >::recursiveLookup().
{ return category_; }
Exception * Exception::clone | ( | void | ) | const [virtual] |
Reimplemented from cms::Exception.
Definition at line 127 of file EDMException.cc.
References Exception().
{ return new Exception(*this); }
std::string Exception::codeToString | ( | Code | c | ) | [static] |
-------------- implementation details ------------------
Definition at line 55 of file EDMException.cc.
References edm::getCodeTable(), i, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by edm::Path::handleWorkerFailure().
{ extern void getCodeTable(CodeMap*&); CodeMap* trans; getCodeTable(trans); CodeMap::const_iterator i(trans->find(c)); return i!=trans->end() ? i->second : std::string("UnknownCode"); }
Definition at line 97 of file EDMException.cc.
References swap(), and groupFilesInBlocks::temp.
void Exception::rethrow | ( | ) | [private, virtual] |
int Exception::returnCode_ | ( | ) | const [private, virtual] |
Reimplemented from cms::Exception.
Definition at line 104 of file EDMException.cc.
References category_.
{ return static_cast<int>(category_); }
void edm::Exception::swap | ( | Exception & | other | ) | [inline] |
void Exception::throwThis | ( | Code | category, |
char const * | message0 = "" , |
||
char const * | message1 = "" , |
||
char const * | message2 = "" , |
||
char const * | message3 = "" , |
||
char const * | message4 = "" |
||
) | [static] |
Definition at line 109 of file EDMException.cc.
References alignCSCRings::e, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by edm::lazydetail::_throw_range(), edm::dsrvdetail::_throw_range(), edm::detail::_throw_range(), edm::dslvdetail::_throw_range(), edm::eventsetup::ComponentFactory< T >::addTo(), edm::RefToBaseVector< T >::at(), edm::OwnVector< T, P >::back(), edm::RefToBase< T >::castTo(), edm::helpers::checkRef(), edm::reftobase::IndirectVectorHolder< T >::const_iterator_imp_specific::dc(), edm::reftobase::RefVectorHolder< REFV >::const_iterator_imp_specific::dc(), edm::reftobase::VectorHolder< T, REFV >::const_iterator_imp_specific::dc(), edm::detailsTrie::errorInsert(), edm::OwnVector< T, P >::fillView(), edm::serviceregistry::ServicesManager::get(), edm::ServiceRegistry::get(), edm::Handle< FWGenericObject >::Handle(), edm::Handle< GenericObject >::Handle(), edm::OneToOneGeneric< CKey, CVal, index >::insert(), edm::OneToMany< JetC, reco::TrackCollection >::insert(), edm::OneToValue< BasicClusterCollection, float, unsigned short >::insert(), edm::OneToManyWithQualityGeneric< TrackingParticleCollection, edm::View< reco::Track >, double >::insert(), edm::ServiceRegistry::isAvailable(), edm::reftobase::RefProdKey::key(), edm::RefToBase< T >::key(), edm::makeRefTo(), edm::reftobase::InvalidHolderToVector< T, REF >::makeVectorBaseHolder(), edm::reftobase::InvalidRefHolderToRefVector< REF >::makeVectorBaseHolder(), edm::reftobase::RefProdRefHolderToRefVector::makeVectorBaseHolder(), edm::reftobase::RefProdHolderToVector< T >::makeVectorBaseHolder(), edm::reftobase::RefProdHolderToVector< T >::makeVectorHolder(), edm::reftobase::InvalidHolderToVector< T, REF >::makeVectorHolder(), edm::reftobase::RefProdRefHolderToRefVector::makeVectorHolder(), edm::reftobase::InvalidRefHolderToRefVector< REF >::makeVectorHolder(), edm::DoNotSetPtr< T >::operator()(), edm::DoNotFillView< T >::operator()(), edm::reftobase::RefVectorHolderBase::const_iterator::operator*(), edm::reftobase::RefVectorHolderBase::const_iterator::operator+(), edm::reftobase::RefVectorHolderBase::const_iterator::operator++(), edm::reftobase::RefVectorHolderBase::const_iterator::operator+=(), edm::reftobase::RefVectorHolderBase::const_iterator::operator-(), edm::reftobase::RefVectorHolderBase::const_iterator::operator--(), edm::reftobase::RefVectorHolderBase::const_iterator::operator-=(), edm::RefToBaseProd< T >::operator->(), edm::reftobase::RefVectorHolderBase::const_iterator::operator<(), edm::AssociationMap< edm::OneToManyWithQualityGeneric< TrackingParticleCollection, edm::View< reco::Track >, double > >::operator[](), edm::reftobase::RefVectorHolder< REFV >::push_back(), edm::reftobase::IndirectVectorHolder< T >::push_back(), edm::reftobase::VectorHolder< T, REFV >::push_back(), edm::detail::reallyfillPtrVector(), edm::reftobase::RefVectorHolderNoFillView< REFV >::reallyFillView(), edm::detail::reallySetPtr(), edm::ESProducer::registerProduct(), edm::helper::Filler< Association< C > >::throwAdd(), edm::helper::Filler< Association< C > >::throwFillSize(), edm::ValueMap< reco::MuonMETCorrectionData >::throwIndexBound(), edm::Association< C >::throwIndexMapBound(), edm::reftobase::BaseVectorHolder< T >::const_iterator::throwInvalidReference(), edm::ValueMap< reco::MuonMETCorrectionData >::throwNotExisting(), and edm::Association< C >::throwRefSet().
{ Exception e(aCategory, std::string(message0)); e << message1 << message2 << message3 << message4; throw e; }
void Exception::throwThis | ( | Code | category, |
char const * | message0, | ||
int | intVal, | ||
char const * | message2 = "" |
||
) | [static] |
Definition at line 121 of file EDMException.cc.
References alignCSCRings::e, and AlCaHLTBitMon_QueryRunRegistry::string.
{ Exception e(aCategory, std::string(message0)); e << intVal << message1; throw e; }
Code edm::Exception::category_ [private] |
Reimplemented from cms::Exception.
Definition at line 117 of file EDMException.h.
Referenced by returnCode_().