DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
QueueIssues.hpp
Go to the documentation of this file.
1
9#ifndef IOMANAGER_INCLUDE_IOMANAGER_QUEUE_QUEUEISSUES_HPP_
10#define IOMANAGER_INCLUDE_IOMANAGER_QUEUE_QUEUEISSUES_HPP_
11
13
14#include "ers/Issue.hpp"
15#include "logging/Logging.hpp" // NOTE: if ISSUES ARE DECLARED BEFORE include logging/Logging.hpp, TLOG_DEBUG<<issue wont work.
16
17#include <string>
18
19namespace dunedaq {
20// Disable coverage collection LCOV_EXCL_START
21
26 QueueTypeUnknown,
27 "Queue type \"" << queue_type << "\" is unknown ",
28 ((std::string)queue_type))
29
30
33ERS_DECLARE_ISSUE(iomanager,
35 "Requested queue \"" << queue_name << "\" of type '" << target_type << "' already declared as type '"
36 << source_type << "'",
37 ((std::string)queue_name)((std::string)source_type)((std::string)target_type))
38
39
42ERS_DECLARE_ISSUE(iomanager,
43 QueueNotFound,
44 "Requested queue \"" << queue_name << "\" of type '" << target_type << "' could not be found.",
45 ((std::string)queue_name)((std::string)target_type))
46
47
50ERS_DECLARE_ISSUE(iomanager, QueueRegistryConfigured, "QueueRegistry already configured", ERS_EMPTY)
51
52ERS_DECLARE_ISSUE(iomanager,
53 ReceiveCallbackConflict,
54 "QueueReceiverModel for uid " << conn_uid << " is equipped with callback! Ignoring receive call.",
55 ((std::string)conn_uid))
56
57
60ERS_DECLARE_ISSUE(iomanager,
61 QueueTimeoutExpired,
62 name << ": Unable to " << func_name << " within timeout period (timeout period was " << timeout
63 << " milliseconds)",
64 ((std::string)name)((std::string)func_name)((int)timeout)) // NOLINT
65// Re-enable coverage collection LCOV_EXCL_STOP
66
67} // namespace dunedaq
68
69#endif // IOMANAGER_INCLUDE_IOMANAGER_QUEUE_QUEUEISSUES_HPP_
#define ERS_DECLARE_ISSUE(namespace_name, class_name, message, attributes)
#define ERS_EMPTY
The DUNE-DAQ namespace.
Definition DataStore.hpp:57