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

     1  // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
     2  
     3  package devicefarm
     4  
     5  import (
     6  	"github.com/aavshr/aws-sdk-go/private/protocol"
     7  )
     8  
     9  const (
    10  
    11  	// ErrCodeArgumentException for service response error code
    12  	// "ArgumentException".
    13  	//
    14  	// An invalid argument was specified.
    15  	ErrCodeArgumentException = "ArgumentException"
    16  
    17  	// ErrCodeCannotDeleteException for service response error code
    18  	// "CannotDeleteException".
    19  	//
    20  	// The requested object could not be deleted.
    21  	ErrCodeCannotDeleteException = "CannotDeleteException"
    22  
    23  	// ErrCodeIdempotencyException for service response error code
    24  	// "IdempotencyException".
    25  	//
    26  	// An entity with the same name already exists.
    27  	ErrCodeIdempotencyException = "IdempotencyException"
    28  
    29  	// ErrCodeInternalServiceException for service response error code
    30  	// "InternalServiceException".
    31  	//
    32  	// An internal exception was raised in the service. Contact aws-devicefarm-support@amazon.com
    33  	// (mailto:aws-devicefarm-support@amazon.com) if you see this error.
    34  	ErrCodeInternalServiceException = "InternalServiceException"
    35  
    36  	// ErrCodeInvalidOperationException for service response error code
    37  	// "InvalidOperationException".
    38  	//
    39  	// There was an error with the update request, or you do not have sufficient
    40  	// permissions to update this VPC endpoint configuration.
    41  	ErrCodeInvalidOperationException = "InvalidOperationException"
    42  
    43  	// ErrCodeLimitExceededException for service response error code
    44  	// "LimitExceededException".
    45  	//
    46  	// A limit was exceeded.
    47  	ErrCodeLimitExceededException = "LimitExceededException"
    48  
    49  	// ErrCodeNotEligibleException for service response error code
    50  	// "NotEligibleException".
    51  	//
    52  	// Exception gets thrown when a user is not eligible to perform the specified
    53  	// transaction.
    54  	ErrCodeNotEligibleException = "NotEligibleException"
    55  
    56  	// ErrCodeNotFoundException for service response error code
    57  	// "NotFoundException".
    58  	//
    59  	// The specified entity was not found.
    60  	ErrCodeNotFoundException = "NotFoundException"
    61  
    62  	// ErrCodeServiceAccountException for service response error code
    63  	// "ServiceAccountException".
    64  	//
    65  	// There was a problem with the service account.
    66  	ErrCodeServiceAccountException = "ServiceAccountException"
    67  
    68  	// ErrCodeTagOperationException for service response error code
    69  	// "TagOperationException".
    70  	//
    71  	// The operation was not successful. Try again.
    72  	ErrCodeTagOperationException = "TagOperationException"
    73  
    74  	// ErrCodeTagPolicyException for service response error code
    75  	// "TagPolicyException".
    76  	//
    77  	// The request doesn't comply with the AWS Identity and Access Management (IAM)
    78  	// tag policy. Correct your request and then retry it.
    79  	ErrCodeTagPolicyException = "TagPolicyException"
    80  
    81  	// ErrCodeTooManyTagsException for service response error code
    82  	// "TooManyTagsException".
    83  	//
    84  	// The list of tags on the repository is over the limit. The maximum number
    85  	// of tags that can be applied to a repository is 50.
    86  	ErrCodeTooManyTagsException = "TooManyTagsException"
    87  )
    88  
    89  var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
    90  	"ArgumentException":         newErrorArgumentException,
    91  	"CannotDeleteException":     newErrorCannotDeleteException,
    92  	"IdempotencyException":      newErrorIdempotencyException,
    93  	"InternalServiceException":  newErrorInternalServiceException,
    94  	"InvalidOperationException": newErrorInvalidOperationException,
    95  	"LimitExceededException":    newErrorLimitExceededException,
    96  	"NotEligibleException":      newErrorNotEligibleException,
    97  	"NotFoundException":         newErrorNotFoundException,
    98  	"ServiceAccountException":   newErrorServiceAccountException,
    99  	"TagOperationException":     newErrorTagOperationException,
   100  	"TagPolicyException":        newErrorTagPolicyException,
   101  	"TooManyTagsException":      newErrorTooManyTagsException,
   102  }