6 #include <utl/AugerException.h>
30 cerr <<
"==> Throw and catch generic exception" << endl;
34 cerr <<
"Auger exception: " << ex.GetExceptionName()
38 cerr <<
"==> Throw derived exception, catch with ancestor" << endl;
42 cerr <<
"Auger exception: " << ex.GetExceptionName()
46 cerr <<
"==> Throw generic exception, provide handler for generic and derived"
51 cerr <<
"Non-existent component exception: "
52 << ex.GetExceptionName()
55 cerr <<
"Auger exception: " << ex.GetExceptionName()
59 cerr <<
"==> Throw derived exception, provide handler for generic and derived"
64 cerr <<
"Non-existent component exception: "
65 << ex.GetExceptionName()
68 cerr <<
"Auger exception: " << ex.GetExceptionName()
Base class for all exceptions used in the auger offline code.
Base class for exceptions trying to access non-existing components.
int main(int argc, char *argv[])
const std::string & GetMessage() const
Retrieve the message from the exception.