12#ifndef TIMINGLIBS_INCLUDE_TIMINGLIBS_TIMINGISSUES_HPP_
13#define TIMINGLIBS_INCLUDE_TIMINGLIBS_TIMINGISSUES_HPP_
22#define TLVL_ENTER_EXIT_METHODS 10
28 appfwk::GeneralDAQModuleIssue,
31 ((std::string)message))
35 appfwk::GeneralDAQModuleIssue,
36 "The " << queueType <<
" queue was not successfully created.",
38 ((std::string)queueType))
42 " UHAL related issue: " << message,
43 ((std::string)message)
47 UHALConnectionsFileIssue,
48 timinglibs::UHALIssue,
49 " UHAL connections file issue: " << message,
50 ((std::string)message),
55 timinglibs::UHALIssue,
56 " Invalid UHAL log level supplied: " << log_level,
57 ((std::string)log_level),
62 timinglibs::UHALIssue,
63 " UHAL device name issue: " << message,
64 ((std::string)message),
71 timinglibs::UHALDeviceNodeIssue,
72 " Failed to cast device " << device <<
" to type " << type <<
" where actual type type is "
74 ((std::string)device),
75 ((std::string)type)((std::string)actual_type))
78 FailedToCollectOpMonInfo,
79 " Failed to collect op mon info from device: " << device_name,
80 ((std::string)device_name))
85 InvalidHardwareCommandID,
86 timinglibs::HardwareCommandIssue,
87 " Hardware command ID: " << hw_cmd_id <<
" invalid!",
88 ((std::string)hw_cmd_id),
92 FailedToExecuteHardwareCommand,
93 timinglibs::HardwareCommandIssue,
94 " Failed to execute hardware command with ID: " << hw_cmd_id <<
" on device: " << device <<
".",
95 ((std::string)hw_cmd_id),
96 ((std::string)device))
99 TimingHardwareCommandRegistrationFailed,
100 appfwk::CommandRegistrationFailed,
101 " Failed to register timing hardware command with ID: " << cmd,
102 ((std::string)cmd)((std::string)name),
106 AttemptedToControlNonExantInfoGatherer,
107 " Attempted to " << action <<
" non extant InfoGatherer for device: " << device,
108 ((std::string)action)((std::string)device))
111 InvalidTriggerRateValue,
112 " Trigger rate value " << trigger_rate <<
" invalid!",
113 ((uint64_t)trigger_rate))
116 QueueIsNullFatalError,
117 appfwk::GeneralDAQModuleIssue,
118 " Queue " << queue <<
" is null! ",
120 ((std::string)queue))
123 TooManyEndpointScanThreadsQueued,
124 " Too many endpoint scan threads queued: " << n_threads <<
" threads! Not queuing endpoint scan!",
125 ((uint64_t)n_threads))
130 EndpointRTTMeasurement,
131 " RTT for endpoint " <<
address <<
" is " << rtt <<
", via fanout: " << fanout <<
", sfp: " << sfp,
132 ((
int)fanout)((
int)sfp)((uint32_t)
address)((uint32_t)rtt))
136 ChangedEndpointRTTMeasurement,
137 " Changed RTT for endpoint " <<
address <<
", old: " << rtt_old <<
", new: " << rtt_new <<
", via fanout: " << fanout
139 ((
int)fanout)((
int)sfp)((uint32_t)
address)((uint32_t)rtt_old)((uint32_t)rtt_new))
142 EndpointUnresponsive,
143 " Endpoint unresponsive, address: " <<
address <<
", via fanout: " << fanout <<
", sfp: " << sfp,
144 ((
int)fanout)((
int)sfp)((uint32_t)
address))
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