AWS SDK for C++  1.7.228
AWS SDK for C++
EC2Errors.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 
16 #pragma once
17 
19 #include <aws/ec2/EC2_EXPORTS.h>
20 
21 namespace Aws
22 {
23 namespace EC2
24 {
25 enum class EC2Errors
26 {
27  //From Core//
30  INTERNAL_FAILURE = 1,
31  INVALID_ACTION = 2,
36  MISSING_ACTION = 7, // SDK should never allow
37  MISSING_AUTHENTICATION_TOKEN = 8, // SDK should never allow
38  MISSING_PARAMETER = 9, // SDK should never allow
39  OPT_IN_REQUIRED = 10,
40  REQUEST_EXPIRED = 11,
42  THROTTLING = 13,
43  VALIDATION = 14,
44  ACCESS_DENIED = 15,
45  RESOURCE_NOT_FOUND = 16,
48  SLOW_DOWN = 19,
50  INVALID_SIGNATURE = 21,
53  REQUEST_TIMEOUT = 24,
54  NETWORK_CONNECTION = 99,
55 
56  UNKNOWN = 100,
58 
124  INVALID_I_D,
218  UNSUPPORTED,
232 };
233 namespace EC2ErrorMapper
234 {
236 }
237 
238 } // namespace EC2
239 } // namespace Aws
AWS_EC2_API Aws::Client::AWSError< Aws::Client::CoreErrors > GetErrorForName(const char *errorName)
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:38