#include <UncatchedException.h>
Public Member Functions | |
UncatchedException () | |
UncatchedException (const cms::Exception &err) | |
Static Public Member Functions | |
static int | count () |
static void | dump (std::ostream &o, bool det=false) |
static void | rethrow () |
Static Private Attributes | |
static int | count_ = 0 |
static cms::Exception * | it = 0 |
static LockMutex::Mutex | mutex |
Definition at line 16 of file UncatchedException.h.
UncatchedException::UncatchedException | ( | ) |
UncatchedException::UncatchedException | ( | const cms::Exception & | err | ) | [explicit] |
int UncatchedException::count | ( | void | ) | [static] |
void UncatchedException::dump | ( | std::ostream & | o, |
bool | det = false |
||
) | [static] |
Definition at line 21 of file CMSexception.cc.
References Genexception::dump(), funct::exp(), it, and cms::Exception::what().
{ if (!it) return; Genexception * exp = dynamic_cast<Genexception*>(it); if (exp) exp->dump(o,det); else o << it->what() << std::endl; }
void UncatchedException::rethrow | ( | void | ) | [static] |
Definition at line 28 of file CMSexception.cc.
References count(), it, and AlCaHLTBitMon_QueryRunRegistry::string.
{ if (count()==0) return; std::string mess("found "); mess+=toa()(count()); mess+= " uncaught exceptions"; if (!it) throw Genexception(mess); //bad but needed in order to make transition to standard CMS exceptions throw *it; //it->rethrow(); }
int UncatchedException::count_ = 0 [static, private] |
Definition at line 30 of file UncatchedException.h.
Referenced by count(), and UncatchedException().
cms::Exception * UncatchedException::it = 0 [static, private] |
Definition at line 27 of file UncatchedException.h.
Referenced by dump(), rethrow(), and UncatchedException().
LockMutex::Mutex UncatchedException::mutex [static, private] |
Definition at line 29 of file UncatchedException.h.
Referenced by count(), and UncatchedException().