1 #ifndef HEPMC_IO_EXCEPTION_H
2 #define HEPMC_IO_EXCEPTION_H
3 // ----------------------------------------------------------------------
8 // IO exception handling
9 // IO_GenEvent, etc. catch the throw and set data members with the error type and message
10 // Some of the messages are constructed with transient information
11 // (e.g., contents of a bad GenParticle)
13 // ----------------------------------------------------------------------
21 //! IO exception handling
24 /// \class IO_Exception
25 /// IO_GenEvent, etc. catch the throw and set data members with the error type and message
26 /// Some of the messages are constructed with transient information
27 /// (e.g., contents of a bad GenParticle)
28 class IO_Exception : public std::runtime_error {
30 IO_Exception(const std::string & msg)
31 : std::runtime_error(msg) { }
50 #endif // HEPMC_IO_EXCEPTION_H