#include <Utilities/General/interface/UncatchedException.h>
Public Member Functions | |
UncatchedException (const cms::Exception &err) | |
UncatchedException () | |
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] |
Definition at line 21 of file CMSexception.cc.
References Genexception::dump(), lat::endl(), funct::exp(), it, and cms::Exception::what().
00021 { 00022 if (!it) return; 00023 Genexception * exp = dynamic_cast<Genexception*>(it); 00024 if (exp) exp->dump(o,det); 00025 else o << it->what() << std::endl; 00026 }
Definition at line 28 of file CMSexception.cc.
00028 { 00029 if (count()==0) return; 00030 std::string mess("found "); mess+=toa()(count()); 00031 mess+= " uncaught exceptions"; 00032 if (!it) throw Genexception(mess); 00033 00034 //bad but needed in order to make transition to standard CMS exceptions 00035 throw *it; 00036 //it->rethrow(); 00037 00038 }
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().