Audacity 3.2.0
CloudSyncError.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: GPL-2.0-or-later */
2/*!********************************************************************
3
4 Audacity: A Digital Audio Editor
5
6 CloudSyncError.h
7
8 Dmitry Vedenko
9
10**********************************************************************/
11#pragma once
12
13#include <string>
14
15#include "NetworkUtils.h"
16
18
20{
21class IResponse;
22} // namespace audacity::network_manager
23
25{
26struct CLOUD_AUDIOCOM_API CloudSyncError final
27{
29 {
42 };
43
44 ErrorType Type { };
45 std::string ErrorMessage;
46};
47
48CLOUD_AUDIOCOM_API
50
51CLOUD_AUDIOCOM_API
53
54CLOUD_AUDIOCOM_API
55CloudSyncError MakeClientFailure(const std::string& message);
56
57CLOUD_AUDIOCOM_API
58CloudSyncError MakeClientFailure(const char* message);
59
60CLOUD_AUDIOCOM_API CloudSyncError::ErrorType
62
63} // namespace audacity::cloud::audiocom::sync
Holds a msgid for the translation catalog; may also bind format arguments.
Interface, that provides access to the data from the HTTP response.
Definition: IResponse.h:113
CloudSyncError::ErrorType DeduceError(SyncResultCode code)
CloudSyncError MakeClientFailure(const TranslatableString &message)
CLOUD_AUDIOCOM_API CloudSyncError DeduceUploadError(audacity::network_manager::IResponse &response)