DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
confmodelIssues.hpp
Go to the documentation of this file.
1#ifndef CONFMODELISSUES_HPP
2#define CONFMODELISSUES_HPP
3
4#include "ers/Issue.hpp"
5
6namespace dunedaq {
8 InvalidOpMonFile,
9 file_name << " is an invalid name for the opmon output",
10 ((std::string)file_name))
11
12ERS_DECLARE_ISSUE(confmodel, LoadDalFailed, "Could not load dal shared library " << library, ((std::string)library))
13
14ERS_DECLARE_ISSUE(confmodel, ConfigurationError, , )
15
17 NoOpmonInfrastructure,
18 ConfigurationError,
19 "The opmon infrastructure has not been set up in the configuration",
20 , )
21
23 NoControlServiceDefined,
24 ConfigurationError,
25 "The control service has not been set up for the application " + app_name +
26 " you need to define a service called " + app_name + "_control",
27 ,
28 ((std::string)app_name))
29
31 DuplicatedControlService,
32 ConfigurationError,
33 "The control service has been defined multiple times for the application " + app_name +
34 " you need to define only one service called control",
35 ,
36 ((std::string)app_name)
37
38)
39
40ERS_DECLARE_ISSUE_BASE(confmodel, BadConf, ConfigurationError, what << where, , ((std::string)what)((std::string)where))
41
43 MissingConstructor,
44 ConfigurationError,
45 "Configuration contains a " + base + " derived object " + obj + " which cannot be cast to " +
46 base + " due to the constructor for the class not being available in this application",
47 ,
48 ((std::string)base)((std::string)obj))
49
50ERS_DECLARE_ISSUE(confmodel, AlgorithmError, , )
51
52ERS_DECLARE_ISSUE_BASE(confmodel, BadVariableUsage, AlgorithmError, message, , ((std::string)message))
53
55 BadApplicationInfo,
56 AlgorithmError,
57 "Failed to retrieve information for Application \'" << app_id
58 << "\' from the database: " << message,
59 ,
60 ((std::string)app_id)((std::string)message))
61
63 BadSessionID,
64 AlgorithmError,
65 "There is no session object with UID = \"" << name << '\"',
66 ,
67 ((std::string)name))
68
70 SegmentExcluded,
71 AlgorithmError,
72 "Cannot get information about applications because the segment is excluded",
73 , )
74
76 BadProgramInfo,
77 AlgorithmError,
78 "Failed to retrieve information for Program \'" << prog_id
79 << "\' from the database: " << message,
80 ,
81 ((std::string)prog_id)((std::string)message))
82
84 BadHost,
85 AlgorithmError,
86 "Failed to retrieve application \'" << app_id << "\' from the database: " << message,
87 ,
88 ((std::string)app_id)((std::string)message))
89
91 NoDefaultHost,
92 AlgorithmError,
93 "Failed to find default host for segment \'" << seg_id << "\' " << message,
94 ,
95 ((std::string)seg_id)((std::string)message))
96
98 NoTemplateAppHost,
99 AlgorithmError,
100 "Both session default and segment default hosts are not defined for "
101 "template application \'"
102 << app_id << "\' from segment \'" << seg_id
103 << "\' (will use localhost, that may cause problems presenting info in "
104 "IGUI for distributed session).",
105 ,
106 ((std::string)app_id)((std::string)seg_id))
107
109 BadTag,
110 AlgorithmError,
111 "Failed to use tag \'" << tag_id << "\' because: " << message,
112 ,
113 ((std::string)tag_id)((std::string)message))
114
116 BadSegment,
117 AlgorithmError,
118 "Invalid Segment \'" << seg_id << "\' because: " << message,
119 ,
120 ((std::string)seg_id)((std::string)message))
121
123 GetTemplateApplicationsOfSegmentError,
124 AlgorithmError,
125 "Failed to get template applications of \'" << name << "\' segment" << message,
126 ,
127 ((std::string)name)((std::string)message))
128
130 BadTemplateSegmentDescription,
131 AlgorithmError,
132 "Bad configuration description of template segment \'" << name << "\': " << message,
133 ,
134 ((std::string)name)((std::string)message))
135
137 CannotGetApplicationObject,
138 AlgorithmError,
139 "Failed to get application object from name: " << reason,
140 ,
141 ((std::string)reason))
142
144 CannotFindSegmentByName,
145 AlgorithmError,
146 "Failed to find segment object \'" << name << "\': " << reason,
147 ,
148 ((std::string)name)((std::string)reason))
149
151 NotInitedObject,
152 AlgorithmError,
153 "The " << item << " object " << obj << " was not initialized",
154 ,
155 ((const char*)item)((void*)obj))
156
158 NotInitedByDalAlgorithm,
159 AlgorithmError,
160 "The " << obj_id << '@' << obj_class << " object " << address
161 << " was not initialized by DAL algorithm " << algo,
162 ,
163 ((std::string)obj_id)((std::string)obj_class)((void*)address)((const char*)algo))
164
166 CannotCreateSegConfig,
167 AlgorithmError,
168 "Failed to create config for segment \'" << name << "\': " << reason,
169 ,
170 ((std::string)name)((std::string)reason))
171
173 CannotGetParents,
174 AlgorithmError,
175 "Failed to get parents of \'" << object << '\'',
176 ,
177 ((std::string)object))
178
181 AlgorithmError,
182 "Reach maximum allowed recursion ("
183 << limit << ") during calculation of " << goal
184 << "; possibly there is circular dependency between these objects: " << objects,
185 ,
186 ((unsigned int)limit)((const char*)goal)((std::string)objects))
187
189 confmodel,
190 NoJarFile,
191 AlgorithmError,
192 "Cannot find jar file \'" << file << "\' described by \'" << obj_id << '@' << obj_class << "\' that is part of \'"
193 << rep_id << '@' << rep_class << '\'',
194 ,
195 ((std::string)file)((std::string)obj_id)((std::string)obj_class)((std::string)rep_id)((std::string)rep_class))
196
198 DuplicatedApplicationID,
199 AlgorithmError,
200 "Two applications have equal IDs:\n 1) " << first << "\n 2) " << second,
201 ,
202 ((std::string)first)((std::string)second))
203
205 SegmentIncludedMultipleTimes,
206 AlgorithmError,
207 "The segment \"" << segment << "\" is included by:\n 1) " << first << "\n 2) " << second,
208 ,
209 ((std::string)segment)((std::string)first)((std::string)second))
210
212 ReadMaxAllowedIterations,
213 AlgorithmError,
214 "Has exceeded the maximum of iterations allowed (" << limit
215 << ") during calculation of excluded objects",
216 ,
217 ((unsigned int)limit))
218
219} // namespace dunedaq
220
221#endif // CONFMODELISSUES_HPP
The DUNE-DAQ namespace.
msgpack::object obj
ERS_DECLARE_ISSUE(cibmodules, CIBCommunicationError, " CIB Hardware Communication Error: "<< descriptor,((std::string) descriptor)) ERS_DECLARE_ISSUE(cibmodules
ERS_DECLARE_ISSUE_BASE(timinglibs, ProgressUpdate, appfwk::GeneralDAQModuleIssue, message,((std::string) name),((std::string) message)) ERS_DECLARE_ISSUE_BASE(timinglibs
Invalid address