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 }
28
30 : std::runtime_error("")
31 {
32 }
33};
34
35class EDeviceAlreadyOpen : public std::runtime_error
36{
37public:
38 explicit EDeviceAlreadyOpen(const std::string& s)
39 : std::runtime_error(s)
40 {
41 }
42
44 : std::runtime_error("")
45 {
46 }
47};
48
49class EBadDeviceList : public std::runtime_error
50{
51public:
52 explicit EBadDeviceList(const std::string& s)
53 : std::runtime_error(s)
54 {
55 }
56
58 : std::runtime_error("")
59 {
60 }
61};
62
63//=======================================//
64// Error reported by USB interface library//
65//=======================================//
66
67class EFTDIError : public std::runtime_error
68{
69public:
70 explicit EFTDIError(const std::string& s)
71 : std::runtime_error(s)
72 {
73 }
74
76 : std::runtime_error("")
77 {
78 }
79};
80
81//=======================================//
82// Error reported by TCP interface library//
83//=======================================//
84
85class ETCPError : public std::runtime_error
86{
87public:
88 explicit ETCPError(const std::string& s)
89 : std::runtime_error(s)
90 {
91 }
92
94 : std::runtime_error("")
95 {
96 }
97};
98
99//===============================================//
100// Error receiving expected event data from device//
101//===============================================//
102
103class EEventReadError : public std::runtime_error
104{
105public:
106 explicit EEventReadError(const std::string& s)
107 : std::runtime_error(s)
108 {
109 }
110
112 : std::runtime_error("")
113 {
114 }
115};
116
117class EDAQConfigError : public std::runtime_error
118{
119public:
120 explicit EDAQConfigError(const std::string& s)
121 : std::runtime_error(s)
122 {
123 }
124
126 : std::runtime_error("")
127 {
128 }
129};
130
131} // namespace sspmodules
132} // namespace dunedaq
133
134#endif // SSPMODULES_SRC_ANLBOARD_ANLEXCEPTIONS_HPP_
EFTDIError(const std::string &s)
ENoSuchDevice(const std::string &s)
ETCPError(const std::string &s)
The DUNE-DAQ namespace.