CLHEP VERSION Reference Documentation
   
CLHEP Home Page     CLHEP Documentation     CLHEP Bug Reports

Classes | Macros
Vector/CLHEP/Vector/ZMxpv.h File Reference
#include <string>
#include <exception>

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

#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 147 of file Vector/CLHEP/Vector/ZMxpv.h.

#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 127 of file Vector/CLHEP/Vector/ZMxpv.h.

#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 132 of file Vector/CLHEP/Vector/ZMxpv.h.