AWS SDK for C++  1.9.158
AWS SDK for C++
CoreErrors.h
Go to the documentation of this file.
1 
5 #pragma once
6 
8 
9 namespace Aws
10 {
11  namespace Http
12  {
13  enum class HttpResponseCode;
14  }
15  namespace Client
16  {
17  template<typename ERROR_TYPE>
18  class AWSError;
19 
20  enum class CoreErrors
21  {
22  INCOMPLETE_SIGNATURE = 0,
23  INTERNAL_FAILURE = 1,
24  INVALID_ACTION = 2,
25  INVALID_CLIENT_TOKEN_ID = 3,
26  INVALID_PARAMETER_COMBINATION = 4,
27  INVALID_QUERY_PARAMETER = 5,
28  INVALID_PARAMETER_VALUE = 6,
29  MISSING_ACTION = 7, // SDK should never allow
30  MISSING_AUTHENTICATION_TOKEN = 8, // SDK should never allow
31  MISSING_PARAMETER = 9, // SDK should never allow
32  OPT_IN_REQUIRED = 10,
33  REQUEST_EXPIRED = 11,
34  SERVICE_UNAVAILABLE = 12,
35  THROTTLING = 13,
36  VALIDATION = 14,
37  ACCESS_DENIED = 15,
38  RESOURCE_NOT_FOUND = 16, // Shared with multiple services
39  UNRECOGNIZED_CLIENT = 17, // Most likely caused by an invalid access key or secret key
40  MALFORMED_QUERY_STRING = 18, // Where does this come from? (cognito identity uses it)
41  SLOW_DOWN = 19,
42  REQUEST_TIME_TOO_SKEWED = 20,
43  INVALID_SIGNATURE = 21,
44  SIGNATURE_DOES_NOT_MATCH = 22,
45  INVALID_ACCESS_KEY_ID = 23,
46  REQUEST_TIMEOUT = 24,
47 
48  NETWORK_CONNECTION = 99, // General failure to send message to service
49 
50  // These are needed for logical reasons
51  UNKNOWN = 100, // Unknown to the SDK
52  CLIENT_SIGNING_FAILURE = 101, // Client failed to sign the request
53  USER_CANCELLED = 102, // User cancelled the request
55  };
56 
57  namespace CoreErrorsMapper
58  {
63 
68 
77  } // namespace CoreErrorsMapper
78  } // namespace Client
79 } // namespace Aws
Aws::Client::CoreErrorsMapper::InitCoreErrorsMapper
AWS_CORE_API void InitCoreErrorsMapper()
Aws::DirectoryService::Model::LDAPSType::NOT_SET
@ NOT_SET
AWS_CORE_API
#define AWS_CORE_API
Definition: Core_EXPORTS.h:25
Aws::Client::CoreErrors
CoreErrors
Definition: CoreErrors.h:21
Aws::Client::CoreErrors::INCOMPLETE_SIGNATURE
@ INCOMPLETE_SIGNATURE
Aws::Http::HttpResponseCode
HttpResponseCode
Definition: HttpResponse.h:30
Aws::Client::AWSError
Definition: AWSError.h:42
Aws::Client::CoreErrorsMapper::CleanupCoreErrorsMapper
AWS_CORE_API void CleanupCoreErrorsMapper()
Aws::Client::CoreErrors::UNKNOWN
@ UNKNOWN
Aws::Client::CoreErrorsMapper::GetErrorForName
AWS_CORE_API AWSError< CoreErrors > GetErrorForName(const char *errorName)
Core_EXPORTS.h
Aws
Definition: AccessManagementClient.h:15
Aws::Client::CoreErrorsMapper::GetErrorForHttpResponseCode
AWS_CORE_API AWSError< CoreErrors > GetErrorForHttpResponseCode(Aws::Http::HttpResponseCode code)