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

     1  // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
     2  
     3  package pinpointsmsvoice
     4  
     5  import (
     6  	"github.com/aavshr/aws-sdk-go/private/protocol"
     7  )
     8  
     9  const (
    10  
    11  	// ErrCodeAlreadyExistsException for service response error code
    12  	// "AlreadyExistsException".
    13  	//
    14  	// The resource specified in your request already exists.
    15  	ErrCodeAlreadyExistsException = "AlreadyExistsException"
    16  
    17  	// ErrCodeBadRequestException for service response error code
    18  	// "BadRequestException".
    19  	//
    20  	// The input you provided is invalid.
    21  	ErrCodeBadRequestException = "BadRequestException"
    22  
    23  	// ErrCodeInternalServiceErrorException for service response error code
    24  	// "InternalServiceErrorException".
    25  	//
    26  	// The API encountered an unexpected error and couldn't complete the request.
    27  	// You might be able to successfully issue the request again in the future.
    28  	ErrCodeInternalServiceErrorException = "InternalServiceErrorException"
    29  
    30  	// ErrCodeLimitExceededException for service response error code
    31  	// "LimitExceededException".
    32  	//
    33  	// There are too many instances of the specified resource type.
    34  	ErrCodeLimitExceededException = "LimitExceededException"
    35  
    36  	// ErrCodeNotFoundException for service response error code
    37  	// "NotFoundException".
    38  	//
    39  	// The resource you attempted to access doesn't exist.
    40  	ErrCodeNotFoundException = "NotFoundException"
    41  
    42  	// ErrCodeTooManyRequestsException for service response error code
    43  	// "TooManyRequestsException".
    44  	//
    45  	// You've issued too many requests to the resource. Wait a few minutes, and
    46  	// then try again.
    47  	ErrCodeTooManyRequestsException = "TooManyRequestsException"
    48  )
    49  
    50  var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
    51  	"AlreadyExistsException":        newErrorAlreadyExistsException,
    52  	"BadRequestException":           newErrorBadRequestException,
    53  	"InternalServiceErrorException": newErrorInternalServiceErrorException,
    54  	"LimitExceededException":        newErrorLimitExceededException,
    55  	"NotFoundException":             newErrorNotFoundException,
    56  	"TooManyRequestsException":      newErrorTooManyRequestsException,
    57  }