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 "
69 << std::hex << std::setw(8) << std::setfill(
'0')
72 << std::hex << std::setw(8) << std::setfill(
'0')
73 << expected_fw_version
76 ((std::string)type) ((uint32_t)fw_version) ((uint32_t)expected_fw_version))
80 appfwk::GeneralDAQModuleIssue,
81 "WIB is set to duplicate data from links 1 and 2 to 3 and 4. This shouldn't happen!",
86 WIBCommunicationError,
87 appfwk::GeneralDAQModuleIssue,
88 "WIB communication error:" << what,
94 appfwk::GeneralDAQModuleIssue,
95 "Unhandled BUException: " << what <<
" : " << description,
97 ((std::string)what) ((std::string)description))
101 appfwk::GeneralDAQModuleIssue,
104 ((std::string)message))
108 appfwk::GeneralDAQModuleIssue,
111 ((std::string)message))
115 appfwk::GeneralDAQModuleIssue,
118 ((std::string)message))
122 "Waiting for alignment constants from PDTS",
127 "Waiting for timestamp from PDTS",
#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)