CLHEP 2.4.6.4
C++ Class Library for High Energy Physics
Loading...
Searching...
No Matches
ZMxpv.h File Reference
#include <exception>
#include <iostream>
#include <string>

Go to the source code of this file.

Classes

class  CLHEP_vector_exception
 

Macros

#define ZMthrowA(A)
 
#define ZMthrowC(A)
 
#define CLHEP_vector_exception_header(NAME)
 

Macro Definition Documentation

◆ CLHEP_vector_exception_header

#define CLHEP_vector_exception_header (   NAME)
Value:
class NAME : public CLHEP_vector_exception { \
public: \
NAME ( const std::string & s ) throw(); \
virtual const char* name() const throw(); \
virtual ~NAME() throw() {} \
};
virtual const char * name() const =0

Definition at line 148 of file ZMxpv.h.

◆ ZMthrowA

#define ZMthrowA (   A)
Value:
do { std::cerr << A.name() << " thrown:\n" \
<< A.what() << "\n" \
<< "at line " << __LINE__ << " in file " << __FILE__ << "\n"; \
throw A;} while (0)

Definition at line 128 of file ZMxpv.h.

◆ ZMthrowC

#define ZMthrowC (   A)
Value:
do { std::cerr << A.name() << ":\n" \
<< A.what() << "\n" \
<< "at line " << __LINE__ << " in file " << __FILE__ << "\n"; \
} while (0)

Definition at line 133 of file ZMxpv.h.