DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
CommonIssues.hpp
Go to the documentation of this file.
1
9#ifndef IOMANAGER_INCLUDE_IOMANAGER_COMMONISSUES_HPP_
10#define IOMANAGER_INCLUDE_IOMANAGER_COMMONISSUES_HPP_
11
12#include "logging/Logging.hpp" // NOTE: if ISSUES ARE DECLARED BEFORE include logging/Logging.hpp, TLOG_DEBUG<<issue wont work.
13#include "ers/Issue.hpp"
14
15#include <string>
16
17namespace dunedaq {
18// Disable coverage collection LCOV_EXCL_START
19
21 ConnectionInstanceNotFound,
22 "Connection Instance not found for name " << name,
23 ((std::string)name))
24
25ERS_DECLARE_ISSUE(iomanager, // namespace
26 TimeoutExpired, // issue class name
27 name << ": Unable to " << func_name << " within timeout period (timeout period was " << timeout
28 << " milliseconds)", // message
29 ((std::string)name)((std::string)func_name)((int)timeout)) // NOLINT(readability/casting)
30
31ERS_DECLARE_ISSUE(iomanager, OperationFailed, message, ((std::string)message))
32
33ERS_DECLARE_ISSUE(iomanager,
34 DatatypeMismatch,
35 "Declared datatype in ConnectionId for connection " << cuid << " is " << cid_dt
36 << " but datatype_to_string reports " << datatype,
37 ((std::string)cuid)((std::string)cid_dt)((std::string)datatype))
38
39// Re-enable coverage collection LCOV_EXCL_STOP
40
41} // namespace dunedaq
42
43#endif // IOMANAGER_INCLUDE_IOMANAGER_COMMONISSUES_HPP_
#define ERS_DECLARE_ISSUE(namespace_name, class_name, message, attributes)
Including Qt Headers.