AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
CoreErrors.h
Go to the documentation of this file.
1
5#pragma once
6
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
49 NETWORK_CONNECTION = 99, // General failure to send message to service
50
51 // These are needed for logical reasons
52 UNKNOWN = 100, // Unknown to the SDK
53 CLIENT_SIGNING_FAILURE = 101, // Client failed to sign the request
54 USER_CANCELLED = 102, // User cancelled the request
57 OK = -1 // No error set
58 };
59
64
65 namespace CoreErrorsMapper
66 {
71
76
85 } // namespace CoreErrorsMapper
86 } // namespace Client
87} // namespace Aws
#define AWS_CORE_API
Definition: Core_EXPORTS.h:26
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:215
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21