#include <EDMException.h>
Public Types | |
typedef errors::ErrorCodes | Code |
typedef std::map< Code, std::string > | CodeMap |
Public Member Functions | |
Code | categoryCode () const |
Exception (Code category, std::string const &message) | |
Exception (Code category, std::string const &message, cms::Exception const &another) | |
Exception (Exception const &other) | |
Exception (Code category) | |
int | returnCode () const |
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 () |
Private Attributes | |
Code | category_ |
Definition at line 72 of file EDMException.h.
Definition at line 74 of file EDMException.h.
typedef std::map<Code, std::string> edm::Exception::CodeMap |
Definition at line 92 of file EDMException.h.
Exception::Exception | ( | Code | category | ) | [explicit] |
Definition at line 57 of file EDMException.cc.
: cms::Exception(codeToString(aCategory)), category_(aCategory) { }
Exception::Exception | ( | Code | category, |
std::string const & | message | ||
) |
Definition at line 62 of file EDMException.cc.
: cms::Exception(codeToString(aCategory),message), category_(aCategory) { }
Exception::Exception | ( | Code | category, |
std::string const & | message, | ||
cms::Exception const & | another | ||
) |
Definition at line 67 of file EDMException.cc.
: cms::Exception(codeToString(aCategory),message,another), category_(aCategory) { }
Exception::Exception | ( | Exception const & | other | ) |
Definition at line 72 of file EDMException.cc.
: cms::Exception(other), category_(other.category_) { }
Exception::~Exception | ( | ) | throw () [virtual] |
Code edm::Exception::categoryCode | ( | ) | const [inline] |
Definition at line 86 of file EDMException.h.
References category_.
Referenced by edm::makeInput(), pat::TriggerObject::origL1EmRef(), pat::TriggerObject::origL1EtMissRef(), pat::TriggerObject::origL1JetRef(), pat::TriggerObject::origL1MuonRef(), pat::helper::RefHelper< T >::parentOrNull(), cms::TrackListMerger::produce(), and pat::helper::RefHelper< T >::recursiveLookup().
{ return category_; }
std::string Exception::codeToString | ( | Code | c | ) | [static] |
-------------- implementation details ------------------
Definition at line 48 of file EDMException.cc.
References edm::getCodeTable(), and i.
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"); }
void Exception::rethrow | ( | void | ) | [private, virtual] |
int edm::Exception::returnCode | ( | ) | const [inline] |
Definition at line 88 of file EDMException.h.
References category_.
{ return static_cast<int>(category_); }
void Exception::throwThis | ( | Code | category, |
char const * | message0, | ||
int | intVal, | ||
char const * | message2 = "" |
||
) | [static] |
Definition at line 93 of file EDMException.cc.
References ExpressReco_HICollisions_FallBack::e.
void Exception::throwThis | ( | Code | category, |
char const * | message0 = "" , |
||
char const * | message1 = "" , |
||
char const * | message2 = "" , |
||
char const * | message3 = "" , |
||
char const * | message4 = "" |
||
) | [static] |
Definition at line 81 of file EDMException.cc.
References ExpressReco_HICollisions_FallBack::e.
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::InvalidRefHolderToRefVector< REF >::makeVectorBaseHolder(), edm::reftobase::InvalidHolderToVector< T, 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::LogDebug_::operator<<(), edm::LogTrace_::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().
Code edm::Exception::category_ [private] |
Reimplemented from cms::Exception.
Definition at line 105 of file EDMException.h.
Referenced by categoryCode(), and returnCode().