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 <ers/Issue.hpp>
12#include "logging/Logging.hpp" // NOTE: if ISSUES ARE DECLARED BEFORE include logging/Logging.hpp, TLOG_DEBUG<<issue wont work.
13
14#include <string>
15
16#define TLVL_TIME_SYNC_PROPERTIES 17
17#define TLVL_TIME_SYNC_NOTES 18
18#define TLVL_TIME_SYNC_NEW_ESTIMATE 19
19
20namespace dunedaq {
21
22// Disable coverage collection LCOV_EXCL_START
23
25 ServiceNotFound,
26 "The service " << service << " was not found in DNS",
27 ((std::string)service))
28ERS_DECLARE_ISSUE(utilities,
30 "The hostname " << name << " could not be resolved: " << error,
31 ((std::string)name)((std::string)error))
32ERS_DECLARE_ISSUE(utilities, InvalidUri, "The URI string " << uri << " is not valid", ((std::string)uri))
33// Reenable coverage collection LCOV_EXCL_STOP
34
35ERS_DECLARE_ISSUE(utilities, InvalidTimeSync, "An invalid TimeSync message was received", ERS_EMPTY)
36
37ERS_DECLARE_ISSUE(utilities,
38 EarlyTimeSync,
39 "The most recent TimeSync message is ahead of current system time by " << time_diff << " us.",
40 ((uint64_t)time_diff)) // NOLINT
41
42ERS_DECLARE_ISSUE(utilities,
43 LateTimeSync,
44 "The most recent TimeSync message is behind current system time by " << time_diff << " us.",
45 ((uint64_t)time_diff)) // NOLINT
46
47ERS_DECLARE_ISSUE(utilities,
48 FailedToGetTimestampEstimate,
49 "Failed to get timestamp estimate (was interrupted)",
51} // namespace dunedaq
52
53#endif // UTILITIES_INCLUDE_UTILITIES_ISSUES_HPP_
#define ERS_DECLARE_ISSUE(namespace_name, class_name, message, attributes)
#define ERS_EMPTY
Including Qt Headers.
NameNotFound
Definition Issues.hpp:29
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