DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
Issues.hpp
Go to the documentation of this file.
1
8#ifndef UTILITIES_INCLUDE_UTILITIES_ISSUES_HPP_
9#define UTILITIES_INCLUDE_UTILITIES_ISSUES_HPP_
10
11#include "logging/Logging.hpp" // NOTE: if ISSUES ARE DECLARED BEFORE include logging/Logging.hpp, TLOG_DEBUG<<issue wont work.
12
13#include <string>
14
15namespace dunedaq {
16
17// Disable coverage collection LCOV_EXCL_START
18
20 ServiceNotFound,
21 "The service " << service << " was not found in DNS",
22 ((std::string)service))
23ERS_DECLARE_ISSUE(utilities,
25 "The hostname " << name << " could not be resolved: " << error,
26 ((std::string)name)((std::string)error))
27ERS_DECLARE_ISSUE(utilities,
28 InterfaceNotFound,
29 "The interface " << name << " does not exist or does not have an assigned IP address",
30 ((std::string)name))
31ERS_DECLARE_ISSUE(utilities, InvalidUri, "The URI string " << uri << " is not valid", ((std::string)uri))
35ERS_DECLARE_ISSUE(utilities, ThreadingIssue, "Threading Issue detected: " << err, ((std::string)err))
36
37ERS_DECLARE_ISSUE(utilities, InvalidTimeSync, "An invalid TimeSync message was received", ERS_EMPTY)
38
39ERS_DECLARE_ISSUE(utilities,
40 EarlyTimeSync,
41 "The most recent TimeSync message is ahead of current system time by " << time_diff << " us.",
42 ((uint64_t)time_diff)) // NOLINT
43
44ERS_DECLARE_ISSUE(utilities,
45 LateTimeSync,
46 "The most recent TimeSync message is behind current system time by " << time_diff << " us.",
47 ((uint64_t)time_diff)) // NOLINT
48
49ERS_DECLARE_ISSUE(utilities,
50 FailedToGetTimestampEstimate,
51 "Failed to get timestamp estimate (was interrupted)",
53// Re-enable coverage collection LCOV_EXCL_STOP
54} // namespace dunedaq
55
56#endif // UTILITIES_INCLUDE_UTILITIES_ISSUES_HPP_
#define ERS_DECLARE_ISSUE(namespace_name, class_name, message, attributes)
#define ERS_EMPTY
The DUNE-DAQ namespace.
NameNotFound
Definition Issues.hpp:24
Unsupported std::string uri Execution of command std::string error Failed to create CommandFacility uri
Definition Issues.hpp:77
Factory couldn t std::string alg_name Invalid configuration error
Definition Issues.hpp:34