24 #undef ENABLE_ZOOM_EXCEPTIONS 109 #ifndef ENABLE_ZOOM_EXCEPTIONS 127 #define ZMthrowA(A) do { std::cerr << A.name() << " thrown:\n" \ 128 << A.what() << "\n" \ 129 << "at line " << __LINE__ << " in file " << __FILE__ << "\n"; \ 132 #define ZMthrowC(A) do { std::cerr << A.name() << ":\n" \ 133 << A.what() << "\n" \ 134 << "at line " << __LINE__ << " in file " << __FILE__ << "\n"; \ 140 virtual const char*
what()
const throw();
141 virtual const char*
name()
const throw() = 0;
147 #define CLHEP_vector_exception_header(NAME) \ 148 class NAME : public CLHEP_vector_exception { \ 150 NAME ( const std::string & s ) throw(); \ 151 virtual const char* name() const throw(); \ 152 virtual ~NAME() throw() {} \ 183 #endif // endif for ifndef ENABLE_ZOOM_EXCEPTIONS 189 #ifdef ENABLE_ZOOM_EXCEPTIONS 200 #ifndef ZMEXCEPTIONS_H 201 #include "Exceptions/ZMexception.h" 202 #include "Exceptions/ZMthrow.h" 204 using namespace zmex;
227 #define ZMthrowA(A) ZMthrow(A) 228 #define ZMthrowC(A) ZMthrow(A) 232 #endif // ENABLE_ZOOM_EXCEPTIONS 234 #endif // HEP_ZMXPV_H
#define CLHEP_vector_exception_header(NAME)
virtual const char * what() const
#define ZMexStandardDefinition(Parent, Class)
virtual ~CLHEP_vector_exception()
CLHEP_vector_exception(const std::string &s1)
virtual const char * name() const =0