-
Notifications
You must be signed in to change notification settings - Fork 2.1k
/
errors.go
111 lines (94 loc) · 4.61 KB
/
errors.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package codestar
import (
"github.com/aws/aws-sdk-go/private/protocol"
)
const (
// ErrCodeConcurrentModificationException for service response error code
// "ConcurrentModificationException".
//
// Another modification is being made. That modification must complete before
// you can make your change.
ErrCodeConcurrentModificationException = "ConcurrentModificationException"
// ErrCodeInvalidNextTokenException for service response error code
// "InvalidNextTokenException".
//
// The next token is not valid.
ErrCodeInvalidNextTokenException = "InvalidNextTokenException"
// ErrCodeInvalidServiceRoleException for service response error code
// "InvalidServiceRoleException".
//
// The service role is not valid.
ErrCodeInvalidServiceRoleException = "InvalidServiceRoleException"
// ErrCodeLimitExceededException for service response error code
// "LimitExceededException".
//
// A resource limit has been exceeded.
ErrCodeLimitExceededException = "LimitExceededException"
// ErrCodeProjectAlreadyExistsException for service response error code
// "ProjectAlreadyExistsException".
//
// An AWS CodeStar project with the same ID already exists in this region for
// the AWS account. AWS CodeStar project IDs must be unique within a region
// for the AWS account.
ErrCodeProjectAlreadyExistsException = "ProjectAlreadyExistsException"
// ErrCodeProjectConfigurationException for service response error code
// "ProjectConfigurationException".
//
// Project configuration information is required but not specified.
ErrCodeProjectConfigurationException = "ProjectConfigurationException"
// ErrCodeProjectCreationFailedException for service response error code
// "ProjectCreationFailedException".
//
// The project creation request was valid, but a nonspecific exception or error
// occurred during project creation. The project could not be created in AWS
// CodeStar.
ErrCodeProjectCreationFailedException = "ProjectCreationFailedException"
// ErrCodeProjectNotFoundException for service response error code
// "ProjectNotFoundException".
//
// The specified AWS CodeStar project was not found.
ErrCodeProjectNotFoundException = "ProjectNotFoundException"
// ErrCodeTeamMemberAlreadyAssociatedException for service response error code
// "TeamMemberAlreadyAssociatedException".
//
// The team member is already associated with a role in this project.
ErrCodeTeamMemberAlreadyAssociatedException = "TeamMemberAlreadyAssociatedException"
// ErrCodeTeamMemberNotFoundException for service response error code
// "TeamMemberNotFoundException".
//
// The specified team member was not found.
ErrCodeTeamMemberNotFoundException = "TeamMemberNotFoundException"
// ErrCodeUserProfileAlreadyExistsException for service response error code
// "UserProfileAlreadyExistsException".
//
// A user profile with that name already exists in this region for the AWS account.
// AWS CodeStar user profile names must be unique within a region for the AWS
// account.
ErrCodeUserProfileAlreadyExistsException = "UserProfileAlreadyExistsException"
// ErrCodeUserProfileNotFoundException for service response error code
// "UserProfileNotFoundException".
//
// The user profile was not found.
ErrCodeUserProfileNotFoundException = "UserProfileNotFoundException"
// ErrCodeValidationException for service response error code
// "ValidationException".
//
// The specified input is either not valid, or it could not be validated.
ErrCodeValidationException = "ValidationException"
)
var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
"ConcurrentModificationException": newErrorConcurrentModificationException,
"InvalidNextTokenException": newErrorInvalidNextTokenException,
"InvalidServiceRoleException": newErrorInvalidServiceRoleException,
"LimitExceededException": newErrorLimitExceededException,
"ProjectAlreadyExistsException": newErrorProjectAlreadyExistsException,
"ProjectConfigurationException": newErrorProjectConfigurationException,
"ProjectCreationFailedException": newErrorProjectCreationFailedException,
"ProjectNotFoundException": newErrorProjectNotFoundException,
"TeamMemberAlreadyAssociatedException": newErrorTeamMemberAlreadyAssociatedException,
"TeamMemberNotFoundException": newErrorTeamMemberNotFoundException,
"UserProfileAlreadyExistsException": newErrorUserProfileAlreadyExistsException,
"UserProfileNotFoundException": newErrorUserProfileNotFoundException,
"ValidationException": newErrorValidationException,
}