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

     1  // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
     2  
     3  package connectwisdomservice
     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  	// The request could not be processed because of conflict in the current state
    21  	// of the resource. For example, if you're using a Create API (such as CreateAssistant)
    22  	// that accepts name, a conflicting resource (usually with the same name) is
    23  	// being created or mutated.
    24  	ErrCodeConflictException = "ConflictException"
    25  
    26  	// ErrCodePreconditionFailedException for service response error code
    27  	// "PreconditionFailedException".
    28  	//
    29  	// The provided revisionId does not match, indicating the content has been modified
    30  	// since it was last read.
    31  	ErrCodePreconditionFailedException = "PreconditionFailedException"
    32  
    33  	// ErrCodeResourceNotFoundException for service response error code
    34  	// "ResourceNotFoundException".
    35  	//
    36  	// The specified resource does not exist.
    37  	ErrCodeResourceNotFoundException = "ResourceNotFoundException"
    38  
    39  	// ErrCodeServiceQuotaExceededException for service response error code
    40  	// "ServiceQuotaExceededException".
    41  	//
    42  	// You've exceeded your service quota. To perform the requested action, remove
    43  	// some of the relevant resources, or use service quotas to request a service
    44  	// quota increase.
    45  	ErrCodeServiceQuotaExceededException = "ServiceQuotaExceededException"
    46  
    47  	// ErrCodeTooManyTagsException for service response error code
    48  	// "TooManyTagsException".
    49  	//
    50  	// Amazon Connect Wisdom throws this exception if you have too many tags in
    51  	// your tag set.
    52  	ErrCodeTooManyTagsException = "TooManyTagsException"
    53  
    54  	// ErrCodeValidationException for service response error code
    55  	// "ValidationException".
    56  	//
    57  	// The input fails to satisfy the constraints specified by an AWS service.
    58  	ErrCodeValidationException = "ValidationException"
    59  )
    60  
    61  var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
    62  	"AccessDeniedException":         newErrorAccessDeniedException,
    63  	"ConflictException":             newErrorConflictException,
    64  	"PreconditionFailedException":   newErrorPreconditionFailedException,
    65  	"ResourceNotFoundException":     newErrorResourceNotFoundException,
    66  	"ServiceQuotaExceededException": newErrorServiceQuotaExceededException,
    67  	"TooManyTagsException":          newErrorTooManyTagsException,
    68  	"ValidationException":           newErrorValidationException,
    69  }