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

     1  // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
     2  
     3  package connectcontactlens
     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  	//
    14  	// You do not have sufficient access to perform this action.
    15  	ErrCodeAccessDeniedException = "AccessDeniedException"
    16  
    17  	// ErrCodeInternalServiceException for service response error code
    18  	// "InternalServiceException".
    19  	//
    20  	// Request processing failed due to an error or failure with the service.
    21  	ErrCodeInternalServiceException = "InternalServiceException"
    22  
    23  	// ErrCodeInvalidRequestException for service response error code
    24  	// "InvalidRequestException".
    25  	//
    26  	// The request is not valid.
    27  	ErrCodeInvalidRequestException = "InvalidRequestException"
    28  
    29  	// ErrCodeResourceNotFoundException for service response error code
    30  	// "ResourceNotFoundException".
    31  	//
    32  	// The specified resource was not found.
    33  	ErrCodeResourceNotFoundException = "ResourceNotFoundException"
    34  
    35  	// ErrCodeThrottlingException for service response error code
    36  	// "ThrottlingException".
    37  	//
    38  	// The throttling limit has been exceeded.
    39  	ErrCodeThrottlingException = "ThrottlingException"
    40  )
    41  
    42  var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
    43  	"AccessDeniedException":     newErrorAccessDeniedException,
    44  	"InternalServiceException":  newErrorInternalServiceException,
    45  	"InvalidRequestException":   newErrorInvalidRequestException,
    46  	"ResourceNotFoundException": newErrorResourceNotFoundException,
    47  	"ThrottlingException":       newErrorThrottlingException,
    48  }