9#ifndef WIBMOD_INCLUDE_WIBMOD_ISSUES_HPP_
10#define WIBMOD_INCLUDE_WIBMOD_ISSUES_HPP_
20#define TLVL_ENTER_EXIT_METHODS 10
22#define TLVL_GENERATION 11
24#define TLVL_CANDIDATE 15
30 appfwk::GeneralDAQModuleIssue,
31 "An unreachable part of the code has been reached.",
37 appfwk::GeneralDAQModuleIssue,
38 "WIB " << name <<
" failed to configure. Additional information: " << info,
45 InvalidPartitionNumber,
46 appfwk::GeneralDAQModuleIssue,
47 "partition_number must be 0-15, not: " << partition_number,
49 ((
int)partition_number))
53 appfwk::GeneralDAQModuleIssue,
54 "WIB Firmware setup in " << fw_mode <<
" readout mode but configure expects " << fw_expect,
56 ((std::string)fw_mode)((std::string)fw_expect))
60 appfwk::GeneralDAQModuleIssue,
61 "WIB Firmware setup in unknown readout mode",
66 IncorrectFirmwareVersion,
67 appfwk::GeneralDAQModuleIssue,
68 type <<
" firmware version is " << std::hex << std::setw(8) << std::setfill(
'0') << fw_version
69 <<
" but expected " << std::hex << std::setw(8) << std::setfill(
'0') << expected_fw_version
72 ((std::string)type)((uint32_t)fw_version)((uint32_t)expected_fw_version))
76 appfwk::GeneralDAQModuleIssue,
77 "WIB is set to duplicate data from links 1 and 2 to 3 and 4. This shouldn't happen!",
82 WIBCommunicationError,
83 appfwk::GeneralDAQModuleIssue,
84 "WIB communication error:" << what,
90 appfwk::GeneralDAQModuleIssue,
91 "Unhandled BUException: " << what <<
" : " << description,
93 ((std::string)what)((std::string)description))
97 appfwk::GeneralDAQModuleIssue,
100 ((std::string)message))
104 appfwk::GeneralDAQModuleIssue,
107 ((std::string)message))
111 appfwk::GeneralDAQModuleIssue,
114 ((std::string)message))
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