1#ifndef CONFMODELISSUES_HPP
2#define CONFMODELISSUES_HPP
8 file_name <<
" is an invalid name for the opmon output",
9 ((std::string)file_name))
12 "Could not load dal shared library " << library,
13 ((
std::
string)library))
18 confmodel, NoOpmonInfrastructure, ConfigurationError,
19 "The opmon infrastructure has not been set up in the configuration", , )
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))
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)
39 ((
std::
string)what) ((
std::
string)where))
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))
50 ((
std::
string)message))
53 "Failed to retrieve information for Application \'"
54 << app_id <<
"\' from the database: " << message,
55 , ((
std::
string)app_id)((
std::
string)message))
58 "There is no session object with UID = \"" << name
60 , ((
std::
string)name))
63 confmodel, SegmentDisabled, AlgorithmError,
64 "Cannot get information about applications because the segment is disabled",
68 "Failed to retrieve information for Program \'"
69 << prog_id <<
"\' from the database: " << message,
70 , ((
std::
string)prog_id)((
std::
string)message))
73 "Failed to retrieve application \'"
74 << app_id <<
"\' from the database: " << message,
75 , ((
std::
string)app_id)((
std::
string)message))
78 "Failed to find default host for segment \'"
79 << seg_id <<
"\' " << message,
80 , ((
std::
string)seg_id)((
std::
string)message))
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))
92 "Failed to use tag \'" << tag_id
93 <<
"\' because: " << message,
94 , ((
std::
string)tag_id)((
std::
string)message))
97 "Invalid Segment \'" << seg_id
98 <<
"\' because: " << message,
99 , ((
std::
string)seg_id)((
std::
string)message))
103 "Failed to get template applications of \'"
104 << name <<
"\' segment" << message,
105 , ((
std::
string)name)((
std::
string)message))
108 "Bad configuration description of template segment \'"
109 << name <<
"\': " << message,
110 , ((
std::
string)name)((
std::
string)message))
113 "Failed to get application object from name: " << reason,
114 , ((
std::
string)reason))
117 "Failed to find segment object \'" << name
119 , ((
std::
string)name)((
std::
string)reason))
122 "The " << item <<
" object " <<
obj
123 <<
" was not initialized",
124 , ((const
char *)item)((
void *)
obj))
127 "The " << obj_id <<
'@' << obj_class <<
" object "
129 <<
" was not initialized by DAL algorithm "
132 ((
std::
string)obj_id)((
std::
string)obj_class)(
133 (
void *)
address)((const
char *)algo))
136 "Failed to create config for segment \'"
137 << name <<
"\': " << reason,
138 , ((
std::
string)name)((
std::
string)reason))
141 "Failed to get parents of \'" <<
object <<
'\'', ,
142 ((
std::
string)
object))
146 "Reach maximum allowed recursion ("
147 << limit <<
") during calculation of " << goal
148 <<
"; possibly there is circular dependency between these objects: "
150 , ((
unsigned int)limit)((const
char *)goal)((
std::
string)objects))
154 "Cannot find jar file \'" << file <<
"\' described by \'" << obj_id <<
'@'
155 << obj_class <<
"\' that is part of \'" << rep_id
156 <<
'@' << rep_class <<
'\'',
158 ((
std::
string)file)((
std::
string)obj_id)((
std::
string)obj_class)(
159 (
std::
string)rep_id)((
std::
string)rep_class))
162 "Two applications have equal IDs:\n 1) "
163 << first <<
"\n 2) " << second,
164 , ((
std::
string)first)((
std::
string)second))
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))
174 ReadMaxAllowedIterations,
176 "Has exceeded the maximum of iterations allowed (" << limit <<
") during calculation of disabled objects",
178 ((
unsigned int)limit))
#define ERS_DECLARE_ISSUE( namespace_name, class_name, message_, attributes)
ERS_DECLARE_ISSUE_BASE(timinglibs, ProgressUpdate, appfwk::GeneralDAQModuleIssue, message,((std::string) name),((std::string) message)) ERS_DECLARE_ISSUE_BASE(timinglibs
ERS_DECLARE_ISSUE(cmdlib, MalformedUri, "Malformed uri: "<< error<< " uri:"<< uri,((std::string) error)((std::string) uri)) ERS_DECLARE_ISSUE(cmdlib
cmdlib specific issues