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 {
7ERS_DECLARE_ISSUE(confmodel, InvalidOpMonFile,
8 file_name << " is an invalid name for the opmon output",
9 ((std::string)file_name))
10
12 "Could not load dal shared library " << library,
13 ((std::string)library))
14
15ERS_DECLARE_ISSUE(confmodel, ConfigurationError, , )
16
18 confmodel, NoOpmonInfrastructure, ConfigurationError,
19 "The opmon infrastructure has not been set up in the configuration", , )
20
22 confmodel, NoControlServiceDefined, ConfigurationError,
23 "The control service has not been set up for the application " + app_name +
24 " you need to define a service called " + app_name + "_control",
25 , ((std::string)app_name))
26
27
29 confmodel, DuplicatedControlService, ConfigurationError,
30 "The control service has been defined multiple times for the application " +
31 app_name + " you need to define only one service called control",
32 , ((std::string)app_name)
33
34)
35
36ERS_DECLARE_ISSUE_BASE(confmodel, BadConf, ConfigurationError,
37 what << where,
38 ,
39 ((std::string)what) ((std::string)where))
40
41ERS_DECLARE_ISSUE_BASE(confmodel, MissingConstructor, ConfigurationError,
42 "Configuration contains a " + base + " derived object " + obj
43 + " which cannot be cast to " + base
44 + " due to the constructor for the class not being available in this application",
45 , ((std::string) base)((std::string) obj))
46
47ERS_DECLARE_ISSUE(confmodel, AlgorithmError, , )
48
49ERS_DECLARE_ISSUE_BASE(confmodel, BadVariableUsage, AlgorithmError, message, ,
50 ((std::string)message))
51
52ERS_DECLARE_ISSUE_BASE(confmodel, BadApplicationInfo, AlgorithmError,
53 "Failed to retrieve information for Application \'"
54 << app_id << "\' from the database: " << message,
55 , ((std::string)app_id)((std::string)message))
56
57ERS_DECLARE_ISSUE_BASE(confmodel, BadSessionID, AlgorithmError,
58 "There is no session object with UID = \"" << name
59 << '\"',
60 , ((std::string)name))
61
63 confmodel, SegmentDisabled, AlgorithmError,
64 "Cannot get information about applications because the segment is disabled",
65 , )
66
67ERS_DECLARE_ISSUE_BASE(confmodel, BadProgramInfo, AlgorithmError,
68 "Failed to retrieve information for Program \'"
69 << prog_id << "\' from the database: " << message,
70 , ((std::string)prog_id)((std::string)message))
71
72ERS_DECLARE_ISSUE_BASE(confmodel, BadHost, AlgorithmError,
73 "Failed to retrieve application \'"
74 << app_id << "\' from the database: " << message,
75 , ((std::string)app_id)((std::string)message))
76
77ERS_DECLARE_ISSUE_BASE(confmodel, NoDefaultHost, AlgorithmError,
78 "Failed to find default host for segment \'"
79 << seg_id << "\' " << message,
80 , ((std::string)seg_id)((std::string)message))
81
83 confmodel, NoTemplateAppHost, AlgorithmError,
84 "Both session default and segment default hosts are not defined for "
85 "template application \'"
86 << app_id << "\' from segment \'" << seg_id
87 << "\' (will use localhost, that may cause problems presenting info in "
88 "IGUI for distributed session).",
89 , ((std::string)app_id)((std::string)seg_id))
90
91ERS_DECLARE_ISSUE_BASE(confmodel, BadTag, AlgorithmError,
92 "Failed to use tag \'" << tag_id
93 << "\' because: " << message,
94 , ((std::string)tag_id)((std::string)message))
95
96ERS_DECLARE_ISSUE_BASE(confmodel, BadSegment, AlgorithmError,
97 "Invalid Segment \'" << seg_id
98 << "\' because: " << message,
99 , ((std::string)seg_id)((std::string)message))
100
101ERS_DECLARE_ISSUE_BASE(confmodel, GetTemplateApplicationsOfSegmentError,
102 AlgorithmError,
103 "Failed to get template applications of \'"
104 << name << "\' segment" << message,
105 , ((std::string)name)((std::string)message))
106
107ERS_DECLARE_ISSUE_BASE(confmodel, BadTemplateSegmentDescription, AlgorithmError,
108 "Bad configuration description of template segment \'"
109 << name << "\': " << message,
110 , ((std::string)name)((std::string)message))
111
112ERS_DECLARE_ISSUE_BASE(confmodel, CannotGetApplicationObject, AlgorithmError,
113 "Failed to get application object from name: " << reason,
114 , ((std::string)reason))
115
116ERS_DECLARE_ISSUE_BASE(confmodel, CannotFindSegmentByName, AlgorithmError,
117 "Failed to find segment object \'" << name
118 << "\': " << reason,
119 , ((std::string)name)((std::string)reason))
120
121ERS_DECLARE_ISSUE_BASE(confmodel, NotInitedObject, AlgorithmError,
122 "The " << item << " object " << obj
123 << " was not initialized",
124 , ((const char *)item)((void *)obj))
125
126ERS_DECLARE_ISSUE_BASE(confmodel, NotInitedByDalAlgorithm, AlgorithmError,
127 "The " << obj_id << '@' << obj_class << " object "
128 << address
129 << " was not initialized by DAL algorithm "
130 << algo,
131 ,
132 ((std::string)obj_id)((std::string)obj_class)(
133 (void *)address)((const char *)algo))
134
135ERS_DECLARE_ISSUE_BASE(confmodel, CannotCreateSegConfig, AlgorithmError,
136 "Failed to create config for segment \'"
137 << name << "\': " << reason,
138 , ((std::string)name)((std::string)reason))
139
140ERS_DECLARE_ISSUE_BASE(confmodel, CannotGetParents, AlgorithmError,
141 "Failed to get parents of \'" << object << '\'', ,
142 ((std::string)object))
143
145 confmodel, FoundCircularDependency, AlgorithmError,
146 "Reach maximum allowed recursion ("
147 << limit << ") during calculation of " << goal
148 << "; possibly there is circular dependency between these objects: "
149 << objects,
150 , ((unsigned int)limit)((const char *)goal)((std::string)objects))
151
153 confmodel, NoJarFile, AlgorithmError,
154 "Cannot find jar file \'" << file << "\' described by \'" << obj_id << '@'
155 << obj_class << "\' that is part of \'" << rep_id
156 << '@' << rep_class << '\'',
157 ,
158 ((std::string)file)((std::string)obj_id)((std::string)obj_class)(
159 (std::string)rep_id)((std::string)rep_class))
160
161ERS_DECLARE_ISSUE_BASE(confmodel, DuplicatedApplicationID, AlgorithmError,
162 "Two applications have equal IDs:\n 1) "
163 << first << "\n 2) " << second,
164 , ((std::string)first)((std::string)second))
165
167 confmodel, SegmentIncludedMultipleTimes, AlgorithmError,
168 "The segment \"" << segment << "\" is included by:\n 1) " << first
169 << "\n 2) " << second,
170 , ((std::string)segment)((std::string)first)((std::string)second))
171
173 confmodel,
174 ReadMaxAllowedIterations,
175 AlgorithmError,
176 "Has exceeded the maximum of iterations allowed (" << limit << ") during calculation of disabled objects",
177 ,
178 ((unsigned int)limit))
179
180
181} // namespace dunedaq
182
183
184#endif // CONFMODELISSUES_HPP
#define ERS_DECLARE_ISSUE_BASE(namespace_name, class_name, base_class_name, message, base_attributes, attributes)
#define ERS_DECLARE_ISSUE(namespace_name, class_name, message, attributes)
The DUNE-DAQ namespace.
Definition DataStore.hpp:57
msgpack::object obj
init Command received when already initialized
Monitoring thread not set
Factory couldn t find
Definition Issues.hpp:24