Error.h
Go to the documentation of this file.
1 #ifndef __DAQMSGERROR_HPP_
2 #define __DAQMSGERROR_HPP_
3 
4 #include "getopt.h"
5 #include <string>
6 #include <sstream>
7 #include <iomanip>
8 #include <vector>
9 #include <fstream>
10 
11 namespace novadaq {
12 
13  namespace messages {
14 
15  namespace error {
16 
17  namespace rc {
18 
19  /**
20  * Run Control Error Codes and Messages
21  *
22  * @author Jonathan Paley
23  * @version $Id: Error.h,v 1.19 2016/02/03 18:40:04 eflumerf Exp $
24  */
25 
26  enum errCode {
27  kOk, // 1
36  kMissingURL, // 10
46  kGTError, // 20
56  kDCMsOk, // 30
66  kNErrors // 40
67  };
68 
69  static const char* const errMsg[] = {
70  "Success",
71  "No resources found from Resource Manager",
72  "Resource not found",
73  "Resource not selected",
74  "Resource not reserved",
75  "Application failed to respond within timeout interval",
76  "Failed to open file",
77  "No DCM in resource list",
78  "No BNEVB in resource list",
79  "Missing URL",
80  "Resource already in another partition",
81  "Partition has not been established",
82  "Fail",
83  "No run start time",
84  "No run stop time",
85  "No shifter",
86  "No run type",
87  "GT Ok",
88  "GT Warning",
89  "GT Error",
90  "DL Ok",
91  "DL Warning",
92  "DL Error",
93  "CfgMgr Ok",
94  "CfgMgr Warning",
95  "CfgMgr Error",
96  "BNEVBs Ok",
97  "BNEVBs Warning",
98  "BNEVBs Error",
99  "DCMs Ok",
100  "DCMs Warning",
101  "DCMs Error",
102  "TDU Ok",
103  "TDU Warning",
104  "TDU Error",
105  "missed too many heartbeats",
106  "Log to database may not be disabled for a non-Test run",
107  "May not begin a Production run with an uncommissioned DCM",
108  "Unable to determine next run number, please check status of the database",
109  0
110  };
111 
112  }
113 
114  namespace gt {
115 
116  }
117 
118  namespace dl {
119  enum errCode {
120  kOk, // 1
123  };
124 
125  static const char* const errMsg[] = {
126  "Ok",
127  "DataLogger not responsive",
128  0
129  };
130  }
131 
132  namespace cfgmgr {
133 
134  }
135 
136  namespace bnevb {
137 
138  }
139 
140  namespace tdu {
141 
142  }
143 
144  namespace dcm {
145 
146  /**
147  * DCM Error Codes and Messages
148  *
149  * @author S. Kasahara
150  */
151 
152  enum errCode {
164  };
165 
166  static const char* const errMsg[] = {
167  "Ok",
168  "Ctrl Reg General Status Error. This is the catch-all for ANY DCM or FEB error that is not more specifically categorized.",
169  "Timing Cmd History Buffer Error",
170  "FEB Link Status Error",
171  "FEB Error Flag Register Error",
172  "No Valid EVB Connections",
173  "Broken EVB Connection",
174  "Invalid EVB Connection",
175  "Data Flow Has Stopped",
176  "Unknown Error",
177  0
178  };
179 
180  }
181 
182  namespace appmgr {
183 
184  /**
185  * DAQ App Manager Error Codes and Messages
186  *
187  * @author J. Paley
188  */
189 
190  enum errCode {
194  };
195 
196  static const char* const errMsg[] = {
197  "Ok",
198  "Applicatin is Unresponsive",
199  0
200  };
201 
202  }
203 
204  namespace ndm {
205 
206  /**
207  * NovaDAQMonitor Error Codes and Messages
208  *
209  * @author S. Kasahara
210  */
211 
212  enum errCode {
216  };
217 
218  static const char* const errMsg[] = {
219  "Ok",
220  "Unknown Error",
221  0
222  };
223 
224  }
225 
226  namespace tdu {
227 
228  }
229 
230 
231 
232  // error handler messages from MsgAnalyzer
233  namespace eh {
234 
235  enum errCode {
239  };
240 
241  static const char* const errMsg[] = {
242  "Ok",
243  "DCM Reader Stopped",
244  "FEB Timestamp Difference Error"
245  };
246 
247  }
248 
249 
250  }
251  }
252 }
253 
254 #endif
messages
Run page makers.
static const char *const errMsg[]
Definition: Error.h:69
bool gt(unsigned short int a, unsigned short int b)