DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
Issues.hpp
Go to the documentation of this file.
1
8#ifndef CMDLIB_INCLUDE_CMDLIB_ISSUES_HPP_
9#define CMDLIB_INCLUDE_CMDLIB_ISSUES_HPP_
10
11
12#include "ers/Issue.hpp"
13#include "logging/Logging.hpp" // NOTE: if ISSUES ARE DECLARED BEFORE include logging/Logging.hpp, TLOG_DEBUG<<issue wont work.
14#include <string>
15
16namespace dunedaq {
17
22 ERS_DECLARE_ISSUE(cmdlib, MalformedUri,
23 "Malformed uri: " << error << " uri:" << uri,
24 ((std::string)error)
25 ((std::string)uri))
26
27 // Throw if a URI is given which is not supported by the code.
28 // Provide the erroneous URI as arg.
30 "Unsupported URI: " << uri,
31 ((std::string)uri))
32
33 // Throw if a file can not be opened. Provide "mode" of "reading"
34 // or "writing" and provide erroneous filename as args.
35 //ERS_DECLARE_ISSUE(cmdlib, BadFile,
36 // "Can not open file for " << mode << ": " << filename,
37 // ((std::string)filename)
38 // ((std::string)mode))
39
40 // Throw if a stream of data is exhausted. Use in methods that
41 // are given semantics that imply the stream is not expected to
42 // become exhausted. Ie, GetNext() may throw but something like
43 // GetNext(return_if_exhausted) -> value must not. Name the
44 // stream and describe the error in the args.
45 //ERS_DECLARE_ISSUE(cmdlib, StreamExhausted,
46 // "Stream exhausted: " << stream_name << " err: " << err,
47 // ((std::string)stream_name)
48 // ((std::string)err))
49
50 // Throw if a stream of data being consumed has values which are
51 // not expected. Give the stream name and error message as args.
52 //ERS_DECLARE_ISSUE(cmdlib, StreamCorrupt,
53 // "Stream corrupt: " << stream_name << " err: " << err,
54 // ((std::string)stream_name)
55 // ((std::string)err))
56
57 // Throw if an operation is the result of logically inconsistent
58 // code. Describe the error in the "what" arg.
59 //ERS_DECLARE_ISSUE(cmdlib, InternalError,
60 // "Internal error: " << what,
61 // ((std::string)what))
62
63
64 ERS_DECLARE_ISSUE(cmdlib, CannotParseCommand,
65 "Failed to parse command: " << error,
66 ((std::string)error))
67
69 "Execution of command failed: " << error,
70 ((std::string)error))
71
72 ERS_DECLARE_ISSUE(cmdlib, CommandFacilityInitialization,
73 "Problem configuring the command facility: " << error,
74 ((std::string)error))
75
77 "Failed to create CommandFacility uri:" << uri,
78 ((std::string)uri))
79
80 ERS_DECLARE_ISSUE(cmdlib, CompletionQueueIssue,
81 "Problem with command completion queue: " << error,
82 ((std::string)error))
83
85 "The main run loop for command reception was interrupted: " << error,
86 ((std::string)error))
87
88} // namespace dunedaq
89
90#endif // CMDLIB_INCLUDE_CMDLIB_ISSUES_HPP_
#define ERS_DECLARE_ISSUE(namespace_name, class_name, message, attributes)
int main(int argc, char **argv)
static volatile sig_atomic_t run
Including Qt Headers.
Unsupported std::string uri Execution of command failed
Definition Issues.hpp:69
Unsupported std::string uri Execution of command std::string error Failed to create CommandFacility std::string uri The main run loop for command reception was interrupted
Definition Issues.hpp:85
UnsupportedUri
Definition Issues.hpp:29
Unsupported std::string uri Execution of command std::string error Failed to create CommandFacility uri
Definition Issues.hpp:77
Unsupported std::string uri Execution of command std::string error Failed to create CommandFacility std::string uri RunLoopTerminated
Definition Issues.hpp:84
Unsupported URI
Definition Issues.hpp:30
Unsupported std::string uri Execution of command std::string error CommandFacilityCreationFailed
Definition Issues.hpp:76
Unsupported std::string uri CommandExecutionFailed
Definition Issues.hpp:68
Factory couldn t std::string alg_name Invalid configuration error
Definition Issues.hpp:34