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, InvalidUri, "The URI string " << uri << " is not valid", ((std::string)uri))
28// Reenable coverage collection LCOV_EXCL_STOP
29
30ERS_DECLARE_ISSUE(utilities, InvalidTimeSync, "An invalid TimeSync message was received", ERS_EMPTY)
31
32ERS_DECLARE_ISSUE(utilities,
33 EarlyTimeSync,
34 "The most recent TimeSync message is ahead of current system time by " << time_diff << " us.",
35 ((uint64_t)time_diff)) // NOLINT
36
37ERS_DECLARE_ISSUE(utilities,
38 LateTimeSync,
39 "The most recent TimeSync message is behind current system time by " << time_diff << " us.",
40 ((uint64_t)time_diff)) // NOLINT
41
42ERS_DECLARE_ISSUE(utilities,
43 FailedToGetTimestampEstimate,
44 "Failed to get timestamp estimate (was interrupted)",
46} // namespace dunedaq
47
48#endif // UTILITIES_INCLUDE_UTILITIES_ISSUES_HPP_
#define ERS_DECLARE_ISSUE(namespace_name, class_name, message, attributes)
#define ERS_EMPTY
The DUNE-DAQ namespace.
Definition DataStore.hpp:57
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