github.com/aavshr/aws-sdk-go@v1.41.3/service/transcribeservice/errors.go (about) 1 // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. 2 3 package transcribeservice 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 // Your request didn't pass one or more validation tests. For example, if the 15 // entity that you're trying to delete doesn't exist or if it is in a non-terminal 16 // state (for example, it's "in progress"). See the exception Message field 17 // for more information. 18 ErrCodeBadRequestException = "BadRequestException" 19 20 // ErrCodeConflictException for service response error code 21 // "ConflictException". 22 // 23 // There is already a resource with that name. 24 ErrCodeConflictException = "ConflictException" 25 26 // ErrCodeInternalFailureException for service response error code 27 // "InternalFailureException". 28 // 29 // There was an internal error. Check the error message and try your request 30 // again. 31 ErrCodeInternalFailureException = "InternalFailureException" 32 33 // ErrCodeLimitExceededException for service response error code 34 // "LimitExceededException". 35 // 36 // Either you have sent too many requests or your input file is too long. Wait 37 // before you resend your request, or use a smaller file and resend the request. 38 ErrCodeLimitExceededException = "LimitExceededException" 39 40 // ErrCodeNotFoundException for service response error code 41 // "NotFoundException". 42 // 43 // We can't find the requested resource. Check the name and try your request 44 // again. 45 ErrCodeNotFoundException = "NotFoundException" 46 ) 47 48 var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ 49 "BadRequestException": newErrorBadRequestException, 50 "ConflictException": newErrorConflictException, 51 "InternalFailureException": newErrorInternalFailureException, 52 "LimitExceededException": newErrorLimitExceededException, 53 "NotFoundException": newErrorNotFoundException, 54 }