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

     1  // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
     2  
     3  package xray
     4  
     5  import (
     6  	"github.com/aavshr/aws-sdk-go/private/protocol"
     7  )
     8  
     9  const (
    10  
    11  	// ErrCodeInvalidRequestException for service response error code
    12  	// "InvalidRequestException".
    13  	//
    14  	// The request is missing required parameters or has invalid parameters.
    15  	ErrCodeInvalidRequestException = "InvalidRequestException"
    16  
    17  	// ErrCodeResourceNotFoundException for service response error code
    18  	// "ResourceNotFoundException".
    19  	//
    20  	// The resource was not found. Verify that the name or Amazon Resource Name
    21  	// (ARN) of the resource is correct.
    22  	ErrCodeResourceNotFoundException = "ResourceNotFoundException"
    23  
    24  	// ErrCodeRuleLimitExceededException for service response error code
    25  	// "RuleLimitExceededException".
    26  	//
    27  	// You have reached the maximum number of sampling rules.
    28  	ErrCodeRuleLimitExceededException = "RuleLimitExceededException"
    29  
    30  	// ErrCodeThrottledException for service response error code
    31  	// "ThrottledException".
    32  	//
    33  	// The request exceeds the maximum number of requests per second.
    34  	ErrCodeThrottledException = "ThrottledException"
    35  
    36  	// ErrCodeTooManyTagsException for service response error code
    37  	// "TooManyTagsException".
    38  	//
    39  	// You have exceeded the maximum number of tags you can apply to this resource.
    40  	ErrCodeTooManyTagsException = "TooManyTagsException"
    41  )
    42  
    43  var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
    44  	"InvalidRequestException":    newErrorInvalidRequestException,
    45  	"ResourceNotFoundException":  newErrorResourceNotFoundException,
    46  	"RuleLimitExceededException": newErrorRuleLimitExceededException,
    47  	"ThrottledException":         newErrorThrottledException,
    48  	"TooManyTagsException":       newErrorTooManyTagsException,
    49  }