49 {
50
53
54 printf( "Try to ignore a ZMxTop with msg -top-\n" );
56 printf( "Try to throw a ZMxHepTuple with msg -bottom-\n" );
57 ZMthrow( ZMxHepTuple(
"bottom" ) );
58
59 printf( "Try to throw a top exception with a ZMhParentHandler\n" );
61
62 printf( "Try to throw a ZMxColumn\n" );
63 ZMthrow( ZMxColumn(
"a column error" ) );
64
66
67 std::ofstream logfile( "exception.report" );
69
70 printf( "Try to throw a ZMxTop2\n" );
72
73 printf( "Try to ignore a ZMxHepTuple2\n" );
74 ZMthrow( ZMxHepTuple2(
"a heptuple error" ) );
75
76
77 printf( "Try to ignore a ZMxColumn\n" );
78 ZMthrow( ZMxColumn(
"2 column error" ) );
79 printf( "Try to ignore a ZMxColumn\n" );
80 ZMthrow( ZMxColumn(
"3 column error" ) );
81 printf( "Try to throw a ZMxColumn\n" );
82 ZMthrow( ZMxColumn(
"4 column error" ) );
83 printf( "Try to throw a ZMxColumn\n" );
84 ZMthrow( ZMxColumn(
"5 column error" ) );
85
86 std::cout << "logged the following exceptions\n";
87 unsigned int s;
91 }
92 std::cout << "Reset the length of ZMerrno to 4\n";
97 }
98
99 return 0;
100}
#define ZMthrow(userExcept)
unsigned int setMax(unsigned int limit)
unsigned int size() const
const ZMexception * get(unsigned int k=0) const
std::string message() const
virtual std::string name() const