AWS SDK for C++

AWS SDK for C++ Version 1.11.870

Loading...
Searching...
No Matches
CoreErrors.h
1
5#pragma once
6
7#include <aws/core/Core_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9
10namespace Aws
11{
12 namespace Http
13 {
14 enum class HttpResponseCode;
15 }
16 namespace Client
17 {
18 template<typename ERROR_TYPE>
19 class AWSError;
20
21 enum class CoreErrors
22 {
30 MISSING_ACTION = 7, // SDK should never allow
31 MISSING_AUTHENTICATION_TOKEN = 8, // SDK should never allow
32 MISSING_PARAMETER = 9, // SDK should never allow
33 OPT_IN_REQUIRED = 10,
34 REQUEST_EXPIRED = 11,
36 THROTTLING = 13,
37 VALIDATION = 14,
38 ACCESS_DENIED = 15,
39 RESOURCE_NOT_FOUND = 16, // Shared with multiple services
40 UNRECOGNIZED_CLIENT = 17, // Most likely caused by an invalid access key or secret key
41 MALFORMED_QUERY_STRING = 18, // Where does this come from? (cognito identity uses it)
42 SLOW_DOWN = 19,
47 REQUEST_TIMEOUT = 24,
48 NOT_INITIALIZED = 25,
50 NOT_IMPLEMENTED = 27,
51
52 NETWORK_CONNECTION = 99, // General failure to send message to service
53
54 // These are needed for logical reasons
55 UNKNOWN = 100, // Unknown to the SDK
56 CLIENT_SIGNING_FAILURE = 101, // Client failed to sign the request
57 USER_CANCELLED = 102, // User cancelled the request
60 OK = -1 // No error set
61 };
62
66 AWS_CORE_API Aws::OStream& operator<< (Aws::OStream& oStream, CoreErrors code);
67
68 namespace CoreErrorsMapper
69 {
73 AWS_CORE_API AWSError<CoreErrors> GetErrorForName(const char* errorName);
74
78 AWS_CORE_API void InitCoreErrorsMapper();
79
83 AWS_CORE_API void CleanupCoreErrorsMapper();
88 } // namespace CoreErrorsMapper
89 } // namespace Client
90} // namespace Aws
AWS_CORE_API void CleanupCoreErrorsMapper()
AWS_CORE_API AWSError< CoreErrors > GetErrorForName(const char *errorName)
AWS_CORE_API void InitCoreErrorsMapper()
AWS_CORE_API AWSError< CoreErrors > GetErrorForHttpResponseCode(Aws::Http::HttpResponseCode code)
Aws::OStream & operator<<(Aws::OStream &s, const AWSError< T > &e)
Definition AWSError.h:265
std::basic_ostream< char, std::char_traits< char > > OStream
Aws::Client::AWSError< CoreErrors > AWSError