CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes | Friends
PFTrackAlgoTools::cms::Exception Class Reference
Inheritance diagram for PFTrackAlgoTools::cms::Exception:
PFTrackAlgoTools::edm::Exception

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 Exceptionclone () 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
 
Exceptionoperator= (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 override
 
 ~Exception () 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, E >::value >::typeoperator<< (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 >::typeoperator<< (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 >::typeoperator<< (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 &))
 

Detailed Description

Definition at line 67 of file PFTrackAlgoTools.cc.

Constructor & Destructor Documentation

PFTrackAlgoTools::cms::Exception::Exception ( std::string const &  aCategory)
explicit
PFTrackAlgoTools::cms::Exception::Exception ( char const *  aCategory)
explicit
PFTrackAlgoTools::cms::Exception::Exception ( std::string const &  aCategory,
std::string const &  message 
)
PFTrackAlgoTools::cms::Exception::Exception ( char const *  aCategory,
std::string const &  message 
)
PFTrackAlgoTools::cms::Exception::Exception ( std::string const &  aCategory,
char const *  message 
)
PFTrackAlgoTools::cms::Exception::Exception ( char const *  aCategory,
char const *  message 
)
PFTrackAlgoTools::cms::Exception::Exception ( std::string const &  aCategory,
std::string const &  message,
Exception const &  another 
)
PFTrackAlgoTools::cms::Exception::Exception ( Exception const &  other)
PFTrackAlgoTools::cms::Exception::~Exception ( )
override

Member Function Documentation

void PFTrackAlgoTools::cms::Exception::addAdditionalInfo ( std::string const &  info)
void PFTrackAlgoTools::cms::Exception::addAdditionalInfo ( char const *  info)
void PFTrackAlgoTools::cms::Exception::addContext ( std::string const &  context)
void PFTrackAlgoTools::cms::Exception::addContext ( char const *  context)
std::list<std::string> const& PFTrackAlgoTools::cms::Exception::additionalInfo ( ) const
bool PFTrackAlgoTools::cms::Exception::alreadyPrinted ( ) const
void PFTrackAlgoTools::cms::Exception::append ( Exception const &  another)

Referenced by diclist.diclist::add().

void PFTrackAlgoTools::cms::Exception::append ( std::string const &  more_information)

Referenced by diclist.diclist::add().

void PFTrackAlgoTools::cms::Exception::append ( char const *  more_information)

Referenced by diclist.diclist::add().

std::string const& PFTrackAlgoTools::cms::Exception::category ( ) const
void PFTrackAlgoTools::cms::Exception::clearAdditionalInfo ( )
void PFTrackAlgoTools::cms::Exception::clearContext ( )
void PFTrackAlgoTools::cms::Exception::clearMessage ( )
virtual Exception* PFTrackAlgoTools::cms::Exception::clone ( ) const
virtual
std::list<std::string> const& PFTrackAlgoTools::cms::Exception::context ( ) const
virtual std::string PFTrackAlgoTools::cms::Exception::explainSelf ( ) const
virtual
std::list<std::string> PFTrackAlgoTools::cms::Exception::history ( ) const
void PFTrackAlgoTools::cms::Exception::init ( std::string const &  message)
private
std::string PFTrackAlgoTools::cms::Exception::message ( ) const
Exception& PFTrackAlgoTools::cms::Exception::operator= ( Exception const &  other)
void PFTrackAlgoTools::cms::Exception::raise ( )
inline

Definition at line 104 of file PFTrackAlgoTools.cc.

virtual void PFTrackAlgoTools::cms::Exception::rethrow ( )
privatevirtual
int PFTrackAlgoTools::cms::Exception::returnCode ( ) const
virtual int PFTrackAlgoTools::cms::Exception::returnCode_ ( ) const
privatevirtual
void PFTrackAlgoTools::cms::Exception::setAdditionalInfo ( std::list< std::string > const &  info)
void PFTrackAlgoTools::cms::Exception::setAlreadyPrinted ( bool  value)
void PFTrackAlgoTools::cms::Exception::setContext ( std::list< std::string > const &  context)
void PFTrackAlgoTools::cms::Exception::swap ( Exception other)
char const* PFTrackAlgoTools::cms::Exception::what ( ) const
override

Friends And Related Function Documentation

template<typename E , typename T >
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.

229  {
230  e.ost_ << stuff;
231  return e;
232  }
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 
)
friend

Definition at line 237 of file Exception.h.

238  {
239  E& ref = const_cast<E&>(e);
240  ref.ost_ << stuff;
241  return e;
242  }
template<typename 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.

248  {
249  f(e.ost_);
250  return e;
251  }
double f[11][100]
template<typename 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.

257  {
258  E& ref = const_cast<E&>(e);
259  f(ref.ost_);
260  return e;
261  }
double f[11][100]
template<typename 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.

267  {
268  f(e.ost_);
269  return e;
270  }
double f[11][100]
template<typename 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.

277  {
278  E& ref = const_cast<E&>(e);
279  f(ref.ost_);
280  return e;
281  }
double f[11][100]

Member Data Documentation

std::list<std::string> PFTrackAlgoTools::cms::Exception::additionalInfo_
private

Definition at line 211 of file PFTrackAlgoTools.cc.

bool PFTrackAlgoTools::cms::Exception::alreadyPrinted_
private

Definition at line 212 of file PFTrackAlgoTools.cc.

std::string PFTrackAlgoTools::cms::Exception::category_
private

Definition at line 208 of file PFTrackAlgoTools.cc.

std::list<std::string> PFTrackAlgoTools::cms::Exception::context_
private

Definition at line 210 of file PFTrackAlgoTools.cc.

std::ostringstream PFTrackAlgoTools::cms::Exception::ost_
private

Definition at line 207 of file PFTrackAlgoTools.cc.

std::string PFTrackAlgoTools::cms::Exception::what_
mutableprivate

Definition at line 209 of file PFTrackAlgoTools.cc.