DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
errors_declaration.hpp
Go to the documentation of this file.
1
9#ifndef SNBMODULES_INCLUDE_SNBMODULES_COMMON_ERRORS_DECLARATION_HPP_
10#define SNBMODULES_INCLUDE_SNBMODULES_COMMON_ERRORS_DECLARATION_HPP_
11
12#include <ers/Issue.hpp>
13#include <string>
14
15namespace dunedaq {
16// common
18 InvalidGroupTransferIDError,
19 "InvalidGroupTransferIDError: Transfer ID " << transfer_id << " not found in " << location,
20 ((std::string)transfer_id)((std::string)location)) // NOLINT
21
22ERS_DECLARE_ISSUE(snbmodules,
24 "NotificationWrongDestinationError: " << location << " Received notification from " << source
25 << " to " << dest,
26 ((std::string)location)((std::string)source)((std::string)dest)) // NOLINT
27
28ERS_DECLARE_ISSUE(snbmodules,
29 InvalidNotificationReceivedError,
30 "InvalidNotificationReceivedError: " << location << " Received invalid notification " << notif
31 << " from " << source,
32 ((std::string)location)((std::string)source)((std::string)notif)) // NOLINT
33
34ERS_DECLARE_ISSUE(snbmodules,
35 NotHandledNotificationError,
36 "NotHandledNotificationError: " << location << " Received notification " << notif << " from "
37 << source << " but theire is no action for it !",
38 ((std::string)location)((std::string)source)((std::string)notif)) // NOLINT
39
40ERS_DECLARE_ISSUE(snbmodules,
41 InvalidProtocolError,
42 "InvalidProtocolError: " << location << " is unable to process protocol or is invalid: " << protocol,
43 ((std::string)location)((std::string)protocol)) // NOLINT
44
45ERS_DECLARE_ISSUE(snbmodules,
46 ConnectionNotFoundError,
47 "ConnectionNotFoundError: No matching connection were found containing id " << name,
48 ((std::string)name)) // NOLINT
49
50ERS_DECLARE_ISSUE(snbmodules,
51 NotificationSendError,
52 "NotificationSendError: Distant host on connection " << name << " is unreachable",
53 ((std::string)name)) // NOLINT
54
55// Client and session
56ERS_DECLARE_ISSUE(snbmodules,
57 TransferClientNotInitializedError,
58 "TransferClientNotInitializedError: client started without being properly initialized : " << location,
59 ((std::string)location)) // NOLINT
60
61ERS_DECLARE_ISSUE(snbmodules,
62 SessionIDNotFoundInClientError,
63 "SessionIDNotFoundInClientError: " << location << " client didn't found session " << session,
64 ((std::string)location)((std::string)session)) // NOLINT
65
67 snbmodules,
68 SessionTypeNotSupportedError,
69 "SessionTypeNotSupportedError: trying to create a session with incorect type Downloader/Uploader for session: "
70 << session,
71 ((std::string)session)) // NOLINT
72
73ERS_DECLARE_ISSUE(snbmodules,
74 SessionAccessToIncorrectActionError,
75 "SessionAccessToIncorrectActionError: session " << session << " try to access to " << action
76 << " action but it is not allowed",
77 ((std::string)session)((std::string)action)) // NOLINT
78
80 snbmodules,
81 SessionWrongStateTransitionError,
82 "SessionWrongStateTransitionError: " << location << " session try to change transition from " << current_state
83 << " to " << future_state << " for file " << file,
84 ((std::string)location)((std::string)file)((std::string)current_state)((std::string)future_state)) // NOLINT
85
86ERS_DECLARE_ISSUE(snbmodules,
87 FileForTransferNotExistError,
88 "FileForTransferNotExistError: " << location << " can't add file " << file,
89 ((std::string)location)((std::string)file)) // NOLINT
90
91// plugins errors
92ERS_DECLARE_ISSUE(snbmodules,
93 InvalidSourceCommandRequestError,
94 "InvalidSourceCommandRequestError: " << command
95 << " request need to be started by the Uploader only !",
96 ((std::string)command)) // NOLINT
97
98// protocols interface errors
100 snbmodules,
101 ErrorSCPDownloadError,
102 "ErrorSCPDownloadError: An Error happend while executing the SCP transfer command. The file have not been send. "
103 << error_msg,
104 ((std::string)error_msg)) // NOLINT
105
106ERS_DECLARE_ISSUE(snbmodules,
107 RCloneNotSupportError,
108 "RCloneNotSupportError: RClone does not support " << error_msg,
109 ((std::string)error_msg)) // NOLINT
110
111ERS_DECLARE_ISSUE(snbmodules,
112 BittorrentPeerDisconnectedError,
113 "BittorrentPeerDisconnectedError: Peer disconnected " << error_msg,
114 ((std::string)error_msg)) // NOLINT
115
116ERS_DECLARE_ISSUE(snbmodules, BittorrentError, "BittorrentError: " << error_msg,
117 ((std::string)error_msg)) // NOLINT
118
119ERS_DECLARE_ISSUE(snbmodules,
120 BittorrentInvalidMagnetLinkError,
121 "BittorrentInvalidMagnetLinkError: Unable to add magnet link file to bittorent session : "
122 << error_msg,
123 ((std::string)error_msg)) // NOLINT
124
125ERS_DECLARE_ISSUE(snbmodules,
126 BittorrentInvalidTorrentFileError,
127 "BittorrentInvalidTorrentFileError: Unable to add torrent file to bittorent session : " << error_msg,
128 ((std::string)error_msg)) // NOLINT
129
130ERS_DECLARE_ISSUE(snbmodules,
131 BittorrentSaveResumeFileError,
132 "BittorrentSaveResumeFileError: Cannot write save metadata files " << error_msg,
133 ((std::string)error_msg)) // NOLINT
134
135ERS_DECLARE_ISSUE(snbmodules,
136 BittorrentLoadResumeFileError,
137 "BittorrentLoadResumeFileError: Cannot load resume metadata from file " << file,
138 ((std::string)file)) // NOLINT
139
140ERS_DECLARE_ISSUE(snbmodules,
141 ConfigError,
142 "ConfigError: Please check the configuration file for more information, " << param,
143 ((std::string)param)) // NOLINT
144
145// metadata errors
146ERS_DECLARE_ISSUE(snbmodules,
147 MetadataFileNotFoundError,
148 "MetadataFileNotFoundError: Error opening metadata file : " << err,
149 ((std::string)err)) // NOLINT
150
151ERS_DECLARE_ISSUE(snbmodules,
152 MetadataNotFoundInGroupError,
153 "MetadataNotFoundInGroupError: Didn't found metadata object in "
154 << group << " group for specified file path : " << path,
155 ((std::string)group)((std::string)path)) // NOLINT
156
157ERS_DECLARE_ISSUE(snbmodules,
158 MetadataNotExpectedInGroupError,
159 "MetadataNotExpectedInGroupError: Didn't expecting adding " << path << " into group " << group,
160 ((std::string)group)((std::string)path)) // NOLINT
161
163 snbmodules,
164 MetadataReadingWrongKeyValueDataError,
165 "MetadataReadingWrongKeyValueDataError: Reading empty or unknown key/value pair entry for metadata file : k="
166 << key << " v=" << value,
167 ((std::string)key)((std::string)value)) // NOLINT
168
169} // namespace dunedaq
170
171#endif // SNBMODULES_INCLUDE_SNBMODULES_COMMON_ERRORS_DECLARATION_HPP_
#define ERS_DECLARE_ISSUE(namespace_name, class_name, message, attributes)
The DUNE-DAQ namespace.