gaps-online-software
0.10
online software for the TOF system for the GAPS experiment
Loading...
Searching...
No Matches
errors.hpp
1
#ifndef GO_ERRORS_H_INCLUDED
2
#define GO_ERRORS_H_INCLUDED
3
4
5
namespace
Gaps
{
6
class
IOError
{
7
public
:
8
9
enum class
ErrorKind {
10
StreamTooShort,
11
WrongDelimiter,
12
PacketNotFound,
13
WrongPacketType,
14
WrongHeaderBytes,
15
WrongTailBytes,
16
EventHeaderCorrupt
17
};
18
19
IOError
(ErrorKind kind, std::string reason =
""
):
20
kind(kind), reason(reason) {}
21
22
ErrorKind kind;
23
std::string reason;
24
};
25
26
//class FatalException : public std::exception {
27
// virtual const char* what() const throw() {
28
// return "Abort program due to a FatalException thrown in gaps-online-software!!";
29
// }
30
//};
31
}
32
#endif
Gaps::IOError
Definition
errors.hpp:6
Gaps
Definition
calibration.h:105
tof
dataclasses
C++
include
errors.hpp
Generated by
1.9.8