StRoot
1
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Groups
Pages
StarGenerator
HepMC2_06_09
HepMC
IO_Exception.h
1
#ifndef HEPMC_IO_EXCEPTION_H
2
#define HEPMC_IO_EXCEPTION_H
3
// ----------------------------------------------------------------------
4
//
5
// IO_Exception.h
6
// Author: Lynn Garren
7
//
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)
12
//
13
// ----------------------------------------------------------------------
14
15
16
17
#include <stdexcept>
18
19
namespace
HepMC {
20
22
28
class
IO_Exception
:
public
std::runtime_error {
29
public
:
30
IO_Exception
(
const
std::string & msg)
31
: std::runtime_error(msg) { }
32
34
enum
ErrorType
{ OK,
35
NullEvent,
36
WrongFileType,
37
MissingStartKey,
38
EndOfStream,
39
EndKeyMismatch,
40
MissingEndKey,
41
InvalidData,
42
InputAndOutput,
43
BadOutputStream,
44
BadInputStream };
45
46
};
47
48
}
// namespace HepMC
49
50
#endif // HEPMC_IO_EXCEPTION_H
HepMC::IO_Exception
IO exception handling.
Definition:
IO_Exception.h:28
HepMC::IO_Exception::ErrorType
ErrorType
IO error types.
Definition:
IO_Exception.h:34
Generated by
1.8.5