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))
31ERS_DECLARE_ISSUE(utilities, ThreadingIssue, "Threading Issue detected: " << err, ((std::string)err))
32
33ERS_DECLARE_ISSUE(utilities, InvalidTimeSync, "An invalid TimeSync message was received", ERS_EMPTY)
34
35ERS_DECLARE_ISSUE(utilities,
36 EarlyTimeSync,
37 "The most recent TimeSync message is ahead of current system time by " << time_diff << " us.",
38 ((uint64_t)time_diff)) // NOLINT
39
40ERS_DECLARE_ISSUE(utilities,
41 LateTimeSync,
42 "The most recent TimeSync message is behind current system time by " << time_diff << " us.",
43 ((uint64_t)time_diff)) // NOLINT
44
45ERS_DECLARE_ISSUE(utilities,
46 FailedToGetTimestampEstimate,
47 "Failed to get timestamp estimate (was interrupted)",
49// Re-enable coverage collection LCOV_EXCL_STOP
50} // namespace dunedaq
51
52#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