BOSS 6.6.4.p01
BESIII Offline Software System
Loading...
Searching...
No Matches
RawFileExceptions.h
Go to the documentation of this file.
1#ifndef BES_RAWFILE_EXCEPTIONS_H
2#define BES_RAWFILE_EXCEPTIONS_H
3
4#include <string>
5
7 public:
8 virtual ~RawFileException() {}
9
10 virtual void print() const;
11};
12
14 public :
15 RawExMessage(const char* msg) : m_msg(msg) {}
16 virtual ~RawExMessage() {}
17
18 virtual void print() const;
19
20 private :
21 std::string m_msg;
22};
23
25 public:
26 InvalidRawFile(const char* filename) : m_filename(filename) {}
27 virtual ~InvalidRawFile() {}
28
29 virtual void print() const;
30
31 private:
32 std::string m_filename;
33};
34
36 public:
37 BadInputStream(const char* block_name) : m_blockName(block_name) {}
38 virtual ~BadInputStream() {}
39
40 virtual void print() const;
41
42 private:
43 std::string m_blockName;
44};
45
47 public:
48 WrongMarker(uint32_t expect, uint32_t value) : m_expect(expect), m_value(value) {}
49 virtual ~WrongMarker() {}
50
51 virtual void print() const;
52
53 private:
54 uint32_t m_expect;
55 uint32_t m_value;
56};
57
59 public:
60 UnexpectedRecordSize(const char* block_name, uint32_t expect, uint32_t value)
61 : m_blockName(block_name), m_expect(expect), m_value(value) {
62 }
64
65 virtual void print() const;
66
67 private:
68 std::string m_blockName;
69 uint32_t m_expect;
70 uint32_t m_value;
71};
72
74 public:
75 ReachEndOfFile(const char* fileName)
76 : m_fileName(fileName) {
77 }
78 virtual ~ReachEndOfFile() {}
79
80 virtual void print() const;
81 void print(const char* fname) const;
82
83 private:
84 std::string m_fileName;
85};
86
88 public :
89 virtual void print() const;
90};
91
93 public:
94 FailedToWrite(const char* block_name) : m_blockName(block_name) {
95 }
96 virtual ~FailedToWrite() {}
97
98 virtual void print() const;
99
100 private:
101 std::string m_blockName;
102};
103
104#endif
#define private
BadInputStream(const char *block_name)
virtual ~BadInputStream()
virtual void print() const
virtual ~FailedToWrite()
FailedToWrite(const char *block_name)
virtual void print() const
virtual void print() const
InvalidRawFile(const char *filename)
virtual ~InvalidRawFile()
RawExMessage(const char *msg)
virtual ~RawExMessage()
virtual void print() const
virtual ~RawFileException()
virtual void print() const
virtual void print() const
virtual void print() const
ReachEndOfFile(const char *fileName)
virtual ~ReachEndOfFile()
virtual void print() const
UnexpectedRecordSize(const char *block_name, uint32_t expect, uint32_t value)
virtual void print() const
WrongMarker(uint32_t expect, uint32_t value)
virtual ~WrongMarker()