Debian Codegraph @

service/privatenetworks/errors.go

raw
1 // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
2
3 package privatenetworks
4
5 import (
6 "github.com/aws/aws-sdk-go/private/protocol"
7 )
8
9 const (
10
11 // ErrCodeAccessDeniedException for service response error code
12 // "AccessDeniedException".
13 //
14 // You do not have permission to perform this operation.
15 ErrCodeAccessDeniedException = "AccessDeniedException"
16
17 // ErrCodeInternalServerException for service response error code
18 // "InternalServerException".
19 //
20 // Information about an internal error.
21 ErrCodeInternalServerException = "InternalServerException"
22
23 // ErrCodeLimitExceededException for service response error code
24 // "LimitExceededException".
25 //
26 // The limit was exceeded.
27 ErrCodeLimitExceededException = "LimitExceededException"
28
29 // ErrCodeResourceNotFoundException for service response error code
30 // "ResourceNotFoundException".
31 //
32 // The resource was not found.
33 ErrCodeResourceNotFoundException = "ResourceNotFoundException"
34
35 // ErrCodeThrottlingException for service response error code
36 // "ThrottlingException".
37 //
38 // The request was denied due to request throttling.
39 ErrCodeThrottlingException = "ThrottlingException"
40
41 // ErrCodeValidationException for service response error code
42 // "ValidationException".
43 //
44 // The request failed validation.
45 ErrCodeValidationException = "ValidationException"
46 )
47
48 var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
49 "AccessDeniedException": newErrorAccessDeniedException,
50 "InternalServerException": newErrorInternalServerException,
51 "LimitExceededException": newErrorLimitExceededException,
52 "ResourceNotFoundException": newErrorResourceNotFoundException,
53 "ThrottlingException": newErrorThrottlingException,
54 "ValidationException": newErrorValidationException,
55 }