github.com/aavshr/aws-sdk-go@v1.41.3/service/serverlessapplicationrepository/errors.go (about) 1 // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. 2 3 package serverlessapplicationrepository 4 5 import ( 6 "github.com/aavshr/aws-sdk-go/private/protocol" 7 ) 8 9 const ( 10 11 // ErrCodeBadRequestException for service response error code 12 // "BadRequestException". 13 // 14 // One of the parameters in the request is invalid. 15 ErrCodeBadRequestException = "BadRequestException" 16 17 // ErrCodeConflictException for service response error code 18 // "ConflictException". 19 // 20 // The resource already exists. 21 ErrCodeConflictException = "ConflictException" 22 23 // ErrCodeForbiddenException for service response error code 24 // "ForbiddenException". 25 // 26 // The client is not authenticated. 27 ErrCodeForbiddenException = "ForbiddenException" 28 29 // ErrCodeInternalServerErrorException for service response error code 30 // "InternalServerErrorException". 31 // 32 // The AWS Serverless Application Repository service encountered an internal 33 // error. 34 ErrCodeInternalServerErrorException = "InternalServerErrorException" 35 36 // ErrCodeNotFoundException for service response error code 37 // "NotFoundException". 38 // 39 // The resource (for example, an access policy statement) specified in the request 40 // doesn't exist. 41 ErrCodeNotFoundException = "NotFoundException" 42 43 // ErrCodeTooManyRequestsException for service response error code 44 // "TooManyRequestsException". 45 // 46 // The client is sending more than the allowed number of requests per unit of 47 // time. 48 ErrCodeTooManyRequestsException = "TooManyRequestsException" 49 ) 50 51 var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ 52 "BadRequestException": newErrorBadRequestException, 53 "ConflictException": newErrorConflictException, 54 "ForbiddenException": newErrorForbiddenException, 55 "InternalServerErrorException": newErrorInternalServerErrorException, 56 "NotFoundException": newErrorNotFoundException, 57 "TooManyRequestsException": newErrorTooManyRequestsException, 58 }