1// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. 2 3package lexmodelbuildingservice 4 5import ( 6 "github.com/aws/aws-sdk-go/private/protocol" 7) 8 9const ( 10 11 // ErrCodeBadRequestException for service response error code 12 // "BadRequestException". 13 // 14 // The request is not well formed. For example, a value is invalid or a required 15 // field is missing. Check the field values, and try again. 16 ErrCodeBadRequestException = "BadRequestException" 17 18 // ErrCodeConflictException for service response error code 19 // "ConflictException". 20 // 21 // There was a conflict processing the request. Try your request again. 22 ErrCodeConflictException = "ConflictException" 23 24 // ErrCodeInternalFailureException for service response error code 25 // "InternalFailureException". 26 // 27 // An internal Amazon Lex error occurred. Try your request again. 28 ErrCodeInternalFailureException = "InternalFailureException" 29 30 // ErrCodeLimitExceededException for service response error code 31 // "LimitExceededException". 32 // 33 // The request exceeded a limit. Try your request again. 34 ErrCodeLimitExceededException = "LimitExceededException" 35 36 // ErrCodeNotFoundException for service response error code 37 // "NotFoundException". 38 // 39 // The resource specified in the request was not found. Check the resource and 40 // try again. 41 ErrCodeNotFoundException = "NotFoundException" 42 43 // ErrCodePreconditionFailedException for service response error code 44 // "PreconditionFailedException". 45 // 46 // The checksum of the resource that you are trying to change does not match 47 // the checksum in the request. Check the resource's checksum and try again. 48 ErrCodePreconditionFailedException = "PreconditionFailedException" 49 50 // ErrCodeResourceInUseException for service response error code 51 // "ResourceInUseException". 52 // 53 // The resource that you are attempting to delete is referred to by another 54 // resource. Use this information to remove references to the resource that 55 // you are trying to delete. 56 // 57 // The body of the exception contains a JSON object that describes the resource. 58 // 59 // { "resourceType": BOT | BOTALIAS | BOTCHANNEL | INTENT, 60 // 61 // "resourceReference": { 62 // 63 // "name": string, "version": string } } 64 ErrCodeResourceInUseException = "ResourceInUseException" 65) 66 67var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ 68 "BadRequestException": newErrorBadRequestException, 69 "ConflictException": newErrorConflictException, 70 "InternalFailureException": newErrorInternalFailureException, 71 "LimitExceededException": newErrorLimitExceededException, 72 "NotFoundException": newErrorNotFoundException, 73 "PreconditionFailedException": newErrorPreconditionFailedException, 74 "ResourceInUseException": newErrorResourceInUseException, 75} 76