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

     1  // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
     2  
     3  package connectparticipant
     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  	// ErrCodeConflictException for service response error code
    18  	// "ConflictException".
    19  	//
    20  	// An attachment with that identifier is already being uploaded.
    21  	ErrCodeConflictException = "ConflictException"
    22  
    23  	// ErrCodeInternalServerException for service response error code
    24  	// "InternalServerException".
    25  	//
    26  	// This exception occurs when there is an internal failure in the Amazon Connect
    27  	// service.
    28  	ErrCodeInternalServerException = "InternalServerException"
    29  
    30  	// ErrCodeServiceQuotaExceededException for service response error code
    31  	// "ServiceQuotaExceededException".
    32  	//
    33  	// The number of attachments per contact exceeds the quota.
    34  	ErrCodeServiceQuotaExceededException = "ServiceQuotaExceededException"
    35  
    36  	// ErrCodeThrottlingException for service response error code
    37  	// "ThrottlingException".
    38  	//
    39  	// The request was denied due to request throttling.
    40  	ErrCodeThrottlingException = "ThrottlingException"
    41  
    42  	// ErrCodeValidationException for service response error code
    43  	// "ValidationException".
    44  	//
    45  	// The input fails to satisfy the constraints specified by Amazon Connect.
    46  	ErrCodeValidationException = "ValidationException"
    47  )
    48  
    49  var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
    50  	"AccessDeniedException":         newErrorAccessDeniedException,
    51  	"ConflictException":             newErrorConflictException,
    52  	"InternalServerException":       newErrorInternalServerException,
    53  	"ServiceQuotaExceededException": newErrorServiceQuotaExceededException,
    54  	"ThrottlingException":           newErrorThrottlingException,
    55  	"ValidationException":           newErrorValidationException,
    56  }