6#include "CLHEP/Exceptions/ZMexception.h"
7#include "CLHEP/Exceptions/ZMexAction.h"
8#include "CLHEP/Exceptions/ZMexClassInfo.h"
9#include "CLHEP/Exceptions/ZMexSeverity.h"
10#include "CLHEP/Exceptions/ZMthrow.h"
23 cerr <<
"Starting main() ..." << endl;
25#ifndef DEFECT_NO_EXCEPTIONS
31 cerr <<
"About to: ZMthrow( Oops(\"Ouch\") )" << endl;
34 cerr <<
"Got past: ZMthrow( Oops(\"Ouch\") ) -- not good!" << endl;
35#ifndef DEFECT_NO_EXCEPTIONS
37 catch (
const Oops &egad ) {
38 cerr <<
"Caught: Oops" << endl;
41 cerr <<
"Caught: ZMexception" << endl;
44 cerr <<
"Caught: don't know what" << endl;
48 cerr <<
"Done." << endl;
#define ZMexStandardDefinition(Parent, Class)
#define ZMthrow(userExcept)