/usr/include/HepMC/IO_Exception.h is in libhepmc-dev 2.06.09-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 | #ifndef HEPMC_IO_EXCEPTION_H
#define HEPMC_IO_EXCEPTION_H
// ----------------------------------------------------------------------
//
// IO_Exception.h
// Author: Lynn Garren
//
// IO exception handling
// IO_GenEvent, etc. catch the throw and set data members with the error type and message
// Some of the messages are constructed with transient information
// (e.g., contents of a bad GenParticle)
//
// ----------------------------------------------------------------------
#include <stdexcept>
namespace HepMC {
//! IO exception handling
///
/// \class IO_Exception
/// IO_GenEvent, etc. catch the throw and set data members with the error type and message
/// Some of the messages are constructed with transient information
/// (e.g., contents of a bad GenParticle)
class IO_Exception : public std::runtime_error {
public:
IO_Exception(const std::string & msg)
: std::runtime_error(msg) { }
/// IO error types
enum ErrorType{ OK,
NullEvent,
WrongFileType,
MissingStartKey,
EndOfStream,
EndKeyMismatch,
MissingEndKey,
InvalidData,
InputAndOutput,
BadOutputStream,
BadInputStream };
};
} // namespace HepMC
#endif // HEPMC_IO_EXCEPTION_H
|