AWS SDK for C++  1.8.25
AWS SDK for C++
S3Errors.h
Go to the documentation of this file.
1 
6 #pragma once
7 
10 #include <aws/s3/S3_EXPORTS.h>
11 
12 namespace Aws
13 {
14 namespace S3
15 {
16 enum class S3Errors
17 {
18  //From Core//
21  INTERNAL_FAILURE = 1,
22  INVALID_ACTION = 2,
27  MISSING_ACTION = 7, // SDK should never allow
28  MISSING_AUTHENTICATION_TOKEN = 8, // SDK should never allow
29  MISSING_PARAMETER = 9, // SDK should never allow
30  OPT_IN_REQUIRED = 10,
31  REQUEST_EXPIRED = 11,
33  THROTTLING = 13,
34  VALIDATION = 14,
35  ACCESS_DENIED = 15,
36  RESOURCE_NOT_FOUND = 16,
39  SLOW_DOWN = 19,
41  INVALID_SIGNATURE = 21,
44  REQUEST_TIMEOUT = 24,
45  NETWORK_CONNECTION = 99,
46 
47  UNKNOWN = 100,
49 
57 };
58 
59 class AWS_S3_API S3Error : public Aws::Client::AWSError<S3Errors>
60 {
61 public:
62  S3Error() {}
63  S3Error(const Aws::Client::AWSError<Aws::Client::CoreErrors>& rhs) : Aws::Client::AWSError<S3Errors>(rhs) {}
65  S3Error(const Aws::Client::AWSError<S3Errors>& rhs) : Aws::Client::AWSError<S3Errors>(rhs) {}
66  S3Error(Aws::Client::AWSError<S3Errors>&& rhs) : Aws::Client::AWSError<S3Errors>(rhs) {}
67 
68  template <typename T>
69  T GetModeledError();
70 };
71 
72 namespace S3ErrorMapper
73 {
75 }
76 
77 } // namespace S3
78 } // namespace Aws
AWS_S3_API Aws::Client::AWSError< Aws::Client::CoreErrors > GetErrorForName(const char *errorName)
S3Error(const Aws::Client::AWSError< S3Errors > &rhs)
Definition: S3Errors.h:65
#define AWS_S3_API
Definition: S3_EXPORTS.h:28
S3Errors
Definition: S3Errors.h:16
S3Error(Aws::Client::AWSError< S3Errors > &&rhs)
Definition: S3Errors.h:66
S3Error(Aws::Client::AWSError< Aws::Client::CoreErrors > &&rhs)
Definition: S3Errors.h:64
S3Error(const Aws::Client::AWSError< Aws::Client::CoreErrors > &rhs)
Definition: S3Errors.h:63