DUNE-DAQ
DUNE Trigger and Data Acquisition software
Toggle main menu visibility
Loading...
Searching...
No Matches
dunedaq
sourcecode
cmdlib
include
cmdlib
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
16
namespace
dunedaq
{
17
21
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.
29
ERS_DECLARE_ISSUE
(
cmdlib
,
UnsupportedUri
,
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
68
ERS_DECLARE_ISSUE
(
cmdlib
,
CommandExecutionFailed
,
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
76
ERS_DECLARE_ISSUE
(
cmdlib
,
CommandFacilityCreationFailed
,
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
84
ERS_DECLARE_ISSUE
(
cmdlib
,
RunLoopTerminated
,
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_
Issue.hpp
Logging.hpp
ERS_DECLARE_ISSUE
#define ERS_DECLARE_ISSUE( namespace_name, class_name, message_, attributes)
Definition
macro.hpp:65
dunedaq::cmdlib
Definition
Nljs.hpp:16
dunedaq
Including Qt Headers.
Definition
module.cpp:16
dunedaq::UnsupportedUri
UnsupportedUri
Definition
Issues.hpp:29
dunedaq::uri
Unsupported std::string uri Execution of command std::string error Failed to create CommandFacility uri
Definition
Issues.hpp:77
dunedaq::ERS_DECLARE_ISSUE
ERS_DECLARE_ISSUE(snbmodules, InvalidGroupTransferIDError, "InvalidGroupTransferIDError: Transfer ID "<< transfer_id<< " not found in "<< location,((std::string) transfer_id)((std::string) location)) ERS_DECLARE_ISSUE(snbmodules
dunedaq::RunLoopTerminated
Unsupported std::string uri Execution of command std::string error Failed to create CommandFacility std::string uri RunLoopTerminated
Definition
Issues.hpp:84
dunedaq::CommandFacilityCreationFailed
Unsupported std::string uri Execution of command std::string error CommandFacilityCreationFailed
Definition
Issues.hpp:76
dunedaq::CommandExecutionFailed
Unsupported std::string uri CommandExecutionFailed
Definition
Issues.hpp:68
dunedaq::error
CIB Buffer std::string descriptor Message from std::string descriptor CIB process error
Definition
CIBModuleIssues.hpp:47
std
Definition
SchemaUtils.hpp:118
Generated on
for DUNE-DAQ by
1.17.0