github.com/aavshr/aws-sdk-go@v1.41.3/service/lexruntimev2/errors.go (about) 1 // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. 2 3 package lexruntimev2 4 5 import ( 6 "github.com/aavshr/aws-sdk-go/private/protocol" 7 ) 8 9 const ( 10 11 // ErrCodeAccessDeniedException for service response error code 12 // "AccessDeniedException". 13 ErrCodeAccessDeniedException = "AccessDeniedException" 14 15 // ErrCodeBadGatewayException for service response error code 16 // "BadGatewayException". 17 ErrCodeBadGatewayException = "BadGatewayException" 18 19 // ErrCodeConflictException for service response error code 20 // "ConflictException". 21 ErrCodeConflictException = "ConflictException" 22 23 // ErrCodeDependencyFailedException for service response error code 24 // "DependencyFailedException". 25 ErrCodeDependencyFailedException = "DependencyFailedException" 26 27 // ErrCodeInternalServerException for service response error code 28 // "InternalServerException". 29 ErrCodeInternalServerException = "InternalServerException" 30 31 // ErrCodeResourceNotFoundException for service response error code 32 // "ResourceNotFoundException". 33 ErrCodeResourceNotFoundException = "ResourceNotFoundException" 34 35 // ErrCodeThrottlingException for service response error code 36 // "ThrottlingException". 37 ErrCodeThrottlingException = "ThrottlingException" 38 39 // ErrCodeValidationException for service response error code 40 // "ValidationException". 41 ErrCodeValidationException = "ValidationException" 42 ) 43 44 var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ 45 "AccessDeniedException": newErrorAccessDeniedException, 46 "BadGatewayException": newErrorBadGatewayException, 47 "ConflictException": newErrorConflictException, 48 "DependencyFailedException": newErrorDependencyFailedException, 49 "InternalServerException": newErrorInternalServerException, 50 "ResourceNotFoundException": newErrorResourceNotFoundException, 51 "ThrottlingException": newErrorThrottlingException, 52 "ValidationException": newErrorValidationException, 53 }