DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
anlExceptions.hpp
Go to the documentation of this file.
1
8#ifndef SSPMODULES_SRC_ANLBOARD_ANLEXCEPTIONS_HPP_
9#define SSPMODULES_SRC_ANLBOARD_ANLEXCEPTIONS_HPP_
10
11#include <stdexcept>
12#include <string>
13
14namespace dunedaq {
15namespace sspmodules {
16
17//================================//
18// Bad requests from Device Manager//
19//================================//
20
21class ENoSuchDevice : public std::runtime_error
22{
23public:
24 explicit ENoSuchDevice(const std::string& s)
25 : std::runtime_error(s)
26 {}
27
29 : std::runtime_error("")
30 {}
31};
32
33class EDeviceAlreadyOpen : public std::runtime_error
34{
35public:
36 explicit EDeviceAlreadyOpen(const std::string& s)
37 : std::runtime_error(s)
38 {}
39
41 : std::runtime_error("")
42 {}
43};
44
45class EBadDeviceList : public std::runtime_error
46{
47public:
48 explicit EBadDeviceList(const std::string& s)
49 : std::runtime_error(s)
50 {}
51
53 : std::runtime_error("")
54 {}
55};
56
57//=======================================//
58// Error reported by USB interface library//
59//=======================================//
60
61class EFTDIError : public std::runtime_error
62{
63public:
64 explicit EFTDIError(const std::string& s)
65 : std::runtime_error(s)
66 {}
67
69 : std::runtime_error("")
70 {}
71};
72
73//=======================================//
74// Error reported by TCP interface library//
75//=======================================//
76
77class ETCPError : public std::runtime_error
78{
79public:
80 explicit ETCPError(const std::string& s)
81 : std::runtime_error(s)
82 {}
83
85 : std::runtime_error("")
86 {}
87};
88
89//===============================================//
90// Error receiving expected event data from device//
91//===============================================//
92
93class EEventReadError : public std::runtime_error
94{
95public:
96 explicit EEventReadError(const std::string& s)
97 : std::runtime_error(s)
98 {}
99
101 : std::runtime_error("")
102 {}
103};
104
105class EDAQConfigError : public std::runtime_error
106{
107public:
108 explicit EDAQConfigError(const std::string& s)
109 : std::runtime_error(s)
110 {}
111
113 : std::runtime_error("")
114 {}
115};
116
117} // namespace sspmodules
118} // namespace dunedaq
119
120#endif // SSPMODULES_SRC_ANLBOARD_ANLEXCEPTIONS_HPP_
EFTDIError(const std::string &s)
ENoSuchDevice(const std::string &s)
ETCPError(const std::string &s)
Including Qt Headers.