github.com/aavshr/aws-sdk-go@v1.41.3/service/lexmodelsv2/errors.go (about)

     1  // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
     2  
     3  package lexmodelsv2
     4  
     5  import (
     6  	"github.com/aavshr/aws-sdk-go/private/protocol"
     7  )
     8  
     9  const (
    10  
    11  	// ErrCodeConflictException for service response error code
    12  	// "ConflictException".
    13  	//
    14  	// The action that you tried to perform couldn't be completed because the resource
    15  	// is in a conflicting state. For example, deleting a bot that is in the CREATING
    16  	// state. Try your request again.
    17  	ErrCodeConflictException = "ConflictException"
    18  
    19  	// ErrCodeInternalServerException for service response error code
    20  	// "InternalServerException".
    21  	//
    22  	// The service encountered an unexpected condition. Try your request again.
    23  	ErrCodeInternalServerException = "InternalServerException"
    24  
    25  	// ErrCodePreconditionFailedException for service response error code
    26  	// "PreconditionFailedException".
    27  	//
    28  	// Your request couldn't be completed because one or more request fields aren't
    29  	// valid. Check the fields in your request and try again.
    30  	ErrCodePreconditionFailedException = "PreconditionFailedException"
    31  
    32  	// ErrCodeResourceNotFoundException for service response error code
    33  	// "ResourceNotFoundException".
    34  	//
    35  	// You asked to describe a resource that doesn't exist. Check the resource that
    36  	// you are requesting and try again.
    37  	ErrCodeResourceNotFoundException = "ResourceNotFoundException"
    38  
    39  	// ErrCodeServiceQuotaExceededException for service response error code
    40  	// "ServiceQuotaExceededException".
    41  	//
    42  	// You have reached a quota for your bot.
    43  	ErrCodeServiceQuotaExceededException = "ServiceQuotaExceededException"
    44  
    45  	// ErrCodeThrottlingException for service response error code
    46  	// "ThrottlingException".
    47  	//
    48  	// Your request rate is too high. Reduce the frequency of requests.
    49  	ErrCodeThrottlingException = "ThrottlingException"
    50  
    51  	// ErrCodeValidationException for service response error code
    52  	// "ValidationException".
    53  	//
    54  	// One of the input parameters in your request isn't valid. Check the parameters
    55  	// and try your request again.
    56  	ErrCodeValidationException = "ValidationException"
    57  )
    58  
    59  var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
    60  	"ConflictException":             newErrorConflictException,
    61  	"InternalServerException":       newErrorInternalServerException,
    62  	"PreconditionFailedException":   newErrorPreconditionFailedException,
    63  	"ResourceNotFoundException":     newErrorResourceNotFoundException,
    64  	"ServiceQuotaExceededException": newErrorServiceQuotaExceededException,
    65  	"ThrottlingException":           newErrorThrottlingException,
    66  	"ValidationException":           newErrorValidationException,
    67  }