Line data Source code
1 : /**
2 : * @file FelixIssues.hpp FELIX card related ERS issues
3 : *
4 : * This is part of the DUNE DAQ , copyright 2020.
5 : * Licensing/copyright details are in the COPYING file that you should have
6 : * received with this code.
7 : */
8 : #ifndef FLXLIBS_SRC_FELIXISSUES_HPP_
9 : #define FLXLIBS_SRC_FELIXISSUES_HPP_
10 :
11 : #include "logging/Logging.hpp" // NOTE: if ISSUES ARE DECLARED BEFORE include logging/Logging.hpp, TLOG_DEBUG<<issue wont work.
12 : #include <ers/Issue.hpp>
13 :
14 : #include <string>
15 :
16 : namespace dunedaq {
17 :
18 0 : ERS_DECLARE_ISSUE(flxlibs, CardError, " FELIX Card Internal Error: " << intererror, ((std::string)intererror))
19 :
20 0 : ERS_DECLARE_ISSUE(flxlibs, InitializationError, " FELIX Initialization Error: " << initerror, ((std::string)initerror))
21 :
22 0 : ERS_DECLARE_ISSUE(flxlibs, ConfigurationError, " FELIX Configuration Error: " << conferror, ((std::string)conferror))
23 :
24 0 : ERS_DECLARE_ISSUE(flxlibs, QueueTimeoutError, " FELIX queue timed out: " << queuename, ((std::string)queuename))
25 :
26 0 : ERS_DECLARE_ISSUE(flxlibs, ChannelAlignment, " Channel not aligned: " << channel, ((int)channel)) // NOLINT
27 :
28 0 : ERS_DECLARE_ISSUE(flxlibs,
29 : UnexpectedChunk,
30 : " Unexpected chunk size: " << chunksize << " (observed) != " << expected << " (expected)",
31 : ((int)chunksize)((size_t)expected)) // NOLINT
32 :
33 0 : ERS_DECLARE_ISSUE(flxlibs,
34 : ParserOperationQueuePushFailure,
35 : " ParserOps couldn't push to queue! Failed chunk: " << chunk,
36 : ((std::string)chunk))
37 :
38 0 : ERS_DECLARE_ISSUE(flxlibs,
39 : ElinkConfigurationInconsistency,
40 : " Inconsistent number of ELinks requested. Num links: " << num_links,
41 : ((int)num_links)) // NOLINT
42 :
43 0 : ERS_DECLARE_ISSUE(flxlibs,
44 : BlockSizeConfigurationInconsistency,
45 : " Invalid FELIX block size and 32b trailer configuration requested: " << block_size,
46 : ((int)block_size)) // NOLINT
47 :
48 0 : ERS_DECLARE_ISSUE_BASE(flxlibs,
49 : ResourceQueueError,
50 : flxlibs::ConfigurationError,
51 : " The " << queueType << " queue was not successfully created. ",
52 : ((std::string)name),
53 : ((std::string)queueType))
54 :
55 : } // namespace dunedaq
56 :
57 : #endif // FLXLIBS_SRC_FELIXISSUES_HPP_
|