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

     1  // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
     2  
     3  package lexruntimeservice
     4  
     5  import (
     6  	"github.com/aavshr/aws-sdk-go/private/protocol"
     7  )
     8  
     9  const (
    10  
    11  	// ErrCodeBadGatewayException for service response error code
    12  	// "BadGatewayException".
    13  	//
    14  	// Either the Amazon Lex bot is still building, or one of the dependent services
    15  	// (Amazon Polly, AWS Lambda) failed with an internal service error.
    16  	ErrCodeBadGatewayException = "BadGatewayException"
    17  
    18  	// ErrCodeBadRequestException for service response error code
    19  	// "BadRequestException".
    20  	//
    21  	// Request validation failed, there is no usable message in the context, or
    22  	// the bot build failed, is still in progress, or contains unbuilt changes.
    23  	ErrCodeBadRequestException = "BadRequestException"
    24  
    25  	// ErrCodeConflictException for service response error code
    26  	// "ConflictException".
    27  	//
    28  	// Two clients are using the same AWS account, Amazon Lex bot, and user ID.
    29  	ErrCodeConflictException = "ConflictException"
    30  
    31  	// ErrCodeDependencyFailedException for service response error code
    32  	// "DependencyFailedException".
    33  	//
    34  	// One of the dependencies, such as AWS Lambda or Amazon Polly, threw an exception.
    35  	// For example,
    36  	//
    37  	//    * If Amazon Lex does not have sufficient permissions to call a Lambda
    38  	//    function.
    39  	//
    40  	//    * If a Lambda function takes longer than 30 seconds to execute.
    41  	//
    42  	//    * If a fulfillment Lambda function returns a Delegate dialog action without
    43  	//    removing any slot values.
    44  	ErrCodeDependencyFailedException = "DependencyFailedException"
    45  
    46  	// ErrCodeInternalFailureException for service response error code
    47  	// "InternalFailureException".
    48  	//
    49  	// Internal service error. Retry the call.
    50  	ErrCodeInternalFailureException = "InternalFailureException"
    51  
    52  	// ErrCodeLimitExceededException for service response error code
    53  	// "LimitExceededException".
    54  	//
    55  	// Exceeded a limit.
    56  	ErrCodeLimitExceededException = "LimitExceededException"
    57  
    58  	// ErrCodeLoopDetectedException for service response error code
    59  	// "LoopDetectedException".
    60  	//
    61  	// This exception is not used.
    62  	ErrCodeLoopDetectedException = "LoopDetectedException"
    63  
    64  	// ErrCodeNotAcceptableException for service response error code
    65  	// "NotAcceptableException".
    66  	//
    67  	// The accept header in the request does not have a valid value.
    68  	ErrCodeNotAcceptableException = "NotAcceptableException"
    69  
    70  	// ErrCodeNotFoundException for service response error code
    71  	// "NotFoundException".
    72  	//
    73  	// The resource (such as the Amazon Lex bot or an alias) that is referred to
    74  	// is not found.
    75  	ErrCodeNotFoundException = "NotFoundException"
    76  
    77  	// ErrCodeRequestTimeoutException for service response error code
    78  	// "RequestTimeoutException".
    79  	//
    80  	// The input speech is too long.
    81  	ErrCodeRequestTimeoutException = "RequestTimeoutException"
    82  
    83  	// ErrCodeUnsupportedMediaTypeException for service response error code
    84  	// "UnsupportedMediaTypeException".
    85  	//
    86  	// The Content-Type header (PostContent API) has an invalid value.
    87  	ErrCodeUnsupportedMediaTypeException = "UnsupportedMediaTypeException"
    88  )
    89  
    90  var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
    91  	"BadGatewayException":           newErrorBadGatewayException,
    92  	"BadRequestException":           newErrorBadRequestException,
    93  	"ConflictException":             newErrorConflictException,
    94  	"DependencyFailedException":     newErrorDependencyFailedException,
    95  	"InternalFailureException":      newErrorInternalFailureException,
    96  	"LimitExceededException":        newErrorLimitExceededException,
    97  	"LoopDetectedException":         newErrorLoopDetectedException,
    98  	"NotAcceptableException":        newErrorNotAcceptableException,
    99  	"NotFoundException":             newErrorNotFoundException,
   100  	"RequestTimeoutException":       newErrorRequestTimeoutException,
   101  	"UnsupportedMediaTypeException": newErrorUnsupportedMediaTypeException,
   102  }