15#include "CLHEP/Exceptions/ZMthrow.h"
16#include "CLHEP/Exceptions/ZMexception.h"
17#include "CLHEP/Exceptions/ZMexAction.h"
18#include "CLHEP/Exceptions/ZMexClassInfo.h"
19#include "CLHEP/Exceptions/ZMexSeverity.h"
42 "directory/subdirectory/fictitious.file" );
44 ZMthrow_from( ZMxTest(
"Artificial backslash Exception"), 4000,
45 "directory/subdirectory\\fictitious.file" );
47 ZMthrow_from( ZMxTest(
"Artificial no slash Exception"), 4000,
50 ZMthrow( ZMxTest(
"Normal exception") );
52 ZMxTest::setName(
"MyExName");
53 ZMthrow( ZMxTest(
"Exception with new name") );
55 ZMxTest::setFacility(
"newFacility");
56 ZMthrow( ZMxTest(
"Exception from new facility") );
65#ifndef DEFECT_NO_EXCEPTIONS
68 ZMthrow( ZMxTest(
"Ordinary Error") );
69#ifndef DEFECT_NO_EXCEPTIONS
72 std::cerr <<
"Caught: " << e.
name() <<
"\n";
#define ZMexStandardDefinition(Parent, Class)
#define ZMthrow(userExcept)
#define ZMthrow_from(userExcept, line, file)
virtual std::string name() const