9#ifndef SNBMODULES_INCLUDE_SNBMODULES_COMMON_ERRORS_DECLARATION_HPP_
10#define SNBMODULES_INCLUDE_SNBMODULES_COMMON_ERRORS_DECLARATION_HPP_
18 InvalidGroupTransferIDError,
19 "InvalidGroupTransferIDError: Transfer ID " << transfer_id <<
" not found in " << location,
20 ((std::string)transfer_id)((std::string)location))
24 "NotificationWrongDestinationError: " << location <<
" Received notification from " << source
26 ((std::string)location)((std::string)source)((std::string)dest))
29 InvalidNotificationReceivedError,
30 "InvalidNotificationReceivedError: " << location <<
" Received invalid notification " << notif
31 <<
" from " << source,
32 ((std::string)location)((std::string)source)((std::string)notif))
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))
42 "InvalidProtocolError: " << location <<
" is unable to process protocol or is invalid: " << protocol,
43 ((std::string)location)((std::string)protocol))
46 ConnectionNotFoundError,
47 "ConnectionNotFoundError: No matching connection were found containing id " << name,
51 NotificationSendError,
52 "NotificationSendError: Distant host on connection " << name <<
" is unreachable",
57 TransferClientNotInitializedError,
58 "TransferClientNotInitializedError: client started without being properly initialized : " << location,
59 ((std::string)location))
62 SessionIDNotFoundInClientError,
63 "SessionIDNotFoundInClientError: " << location <<
" client didn't found session " <<
session,
64 ((std::string)location)((std::string)
session))
68 SessionTypeNotSupportedError,
69 "SessionTypeNotSupportedError: trying to create a session with incorect type Downloader/Uploader for session: "
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))
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))
87 FileForTransferNotExistError,
88 "FileForTransferNotExistError: " << location <<
" can't add file " << file,
89 ((std::string)location)((std::string)file))
93 InvalidSourceCommandRequestError,
94 "InvalidSourceCommandRequestError: " << command
95 <<
" request need to be started by the Uploader only !",
96 ((std::string)command))
101 ErrorSCPDownloadError,
102 "ErrorSCPDownloadError: An Error happend while executing the SCP transfer command. The file have not been send. "
104 ((std::string)error_msg))
107 RCloneNotSupportError,
108 "RCloneNotSupportError: RClone does not support " << error_msg,
109 ((std::string)error_msg))
112 BittorrentPeerDisconnectedError,
113 "BittorrentPeerDisconnectedError: Peer disconnected " << error_msg,
114 ((std::string)error_msg))
117 ((std::string)error_msg))
120 BittorrentInvalidMagnetLinkError,
121 "BittorrentInvalidMagnetLinkError: Unable to add magnet link file to bittorent session : "
123 ((std::string)error_msg))
126 BittorrentInvalidTorrentFileError,
127 "BittorrentInvalidTorrentFileError: Unable to add torrent file to bittorent session : " << error_msg,
128 ((std::string)error_msg))
131 BittorrentSaveResumeFileError,
132 "BittorrentSaveResumeFileError: Cannot write save metadata files " << error_msg,
133 ((std::string)error_msg))
136 BittorrentLoadResumeFileError,
137 "BittorrentLoadResumeFileError: Cannot load resume metadata from file " << file,
142 "ConfigError: Please check the configuration file for more information, " << param,
143 ((std::string)param))
147 MetadataFileNotFoundError,
148 "MetadataFileNotFoundError: Error opening metadata file : " << err,
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))
158 MetadataNotExpectedInGroupError,
159 "MetadataNotExpectedInGroupError: Didn't expecting adding " << path <<
" into group " << group,
160 ((std::string)group)((std::string)path))
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))
#define ERS_DECLARE_ISSUE(namespace_name, class_name, message, attributes)
NotificationWrongDestinationError