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),
69 " Issue with UHAL device: " << device,
70 ((std::string)device))
74 timinglibs::UHALDeviceNodeIssue,
75 " Failed to cast device " << device <<
" to type " << type <<
" where actual type type is "
77 ((std::string)device),
78 ((std::string)type)((std::string)actual_type))
81 FailedToCollectOpMonInfo,
82 " Failed to collect op mon info from device: " << device_name,
83 ((std::string)device_name))
88 InvalidHardwareCommandID,
89 timinglibs::HardwareCommandIssue,
90 " Hardware command ID: " << hw_cmd_id <<
" invalid!",
91 ((std::string)hw_cmd_id),
95 FailedToExecuteHardwareCommand,
96 timinglibs::HardwareCommandIssue,
97 " Failed to execute hardware command with ID: " << hw_cmd_id <<
" on device: " << device <<
".",
98 ((std::string)hw_cmd_id),
99 ((std::string)device))
102 TimingHardwareCommandRegistrationFailed,
103 appfwk::CommandRegistrationFailed,
104 " Failed to register timing hardware command with ID: " << cmd,
105 ((std::string)cmd)((std::string)name),
109 AttemptedToControlNonExantInfoGatherer,
110 " Attempted to " << action <<
" non extant InfoGatherer for device: " << device,
111 ((std::string)action)((std::string)device))
114 InvalidTriggerRateValue,
115 " Trigger rate value " << trigger_rate <<
" invalid!",
116 ((uint64_t)trigger_rate))
119 QueueIsNullFatalError,
120 appfwk::GeneralDAQModuleIssue,
121 " Queue " << queue <<
" is null! ",
123 ((std::string)queue))
126 TooManyEndpointScanThreadsQueued,
127 " Too many endpoint scan threads queued: " << n_threads <<
" threads! Not queuing endpoint scan!",
128 ((uint64_t)n_threads))
133 EndpointRTTMeasurement,
134 " RTT for endpoint " <<
address <<
" is " << rtt <<
", via fanout: " << fanout <<
", sfp: " << sfp,
135 ((
int)fanout)((
int)sfp)((uint32_t)
address)((uint32_t)rtt))
138 ChangedEndpointRTTMeasurement,
139 " Changed RTT for endpoint " <<
address <<
", old: " << rtt_old <<
", new: " << rtt_new <<
", via fanout: " << fanout <<
", sfp: " << sfp,
140 ((
int)fanout)((
int)sfp)((uint32_t)
address)((uint32_t)rtt_old)((uint32_t)rtt_new))
143 EndpointUnresponsive,
144 " Endpoint unresponsive, address: " <<
address <<
", via fanout: " << fanout <<
", sfp: " << sfp,
145 ((
int)fanout)((
int)sfp)((uint32_t)
address))
#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)