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

     1  // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
     2  
     3  package iotfleethub
     4  
     5  import (
     6  	"github.com/aavshr/aws-sdk-go/private/protocol"
     7  )
     8  
     9  const (
    10  
    11  	// ErrCodeConflictException for service response error code
    12  	// "ConflictException".
    13  	//
    14  	// The request conflicts with the current state of the resource.
    15  	ErrCodeConflictException = "ConflictException"
    16  
    17  	// ErrCodeInternalFailureException for service response error code
    18  	// "InternalFailureException".
    19  	//
    20  	// An unexpected error has occurred.
    21  	ErrCodeInternalFailureException = "InternalFailureException"
    22  
    23  	// ErrCodeInvalidRequestException for service response error code
    24  	// "InvalidRequestException".
    25  	//
    26  	// The request is not valid.
    27  	ErrCodeInvalidRequestException = "InvalidRequestException"
    28  
    29  	// ErrCodeLimitExceededException for service response error code
    30  	// "LimitExceededException".
    31  	//
    32  	// A limit has been exceeded.
    33  	ErrCodeLimitExceededException = "LimitExceededException"
    34  
    35  	// ErrCodeResourceNotFoundException for service response error code
    36  	// "ResourceNotFoundException".
    37  	//
    38  	// The specified resource does not exist.
    39  	ErrCodeResourceNotFoundException = "ResourceNotFoundException"
    40  
    41  	// ErrCodeThrottlingException for service response error code
    42  	// "ThrottlingException".
    43  	//
    44  	// The rate exceeds the limit.
    45  	ErrCodeThrottlingException = "ThrottlingException"
    46  )
    47  
    48  var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
    49  	"ConflictException":         newErrorConflictException,
    50  	"InternalFailureException":  newErrorInternalFailureException,
    51  	"InvalidRequestException":   newErrorInvalidRequestException,
    52  	"LimitExceededException":    newErrorLimitExceededException,
    53  	"ResourceNotFoundException": newErrorResourceNotFoundException,
    54  	"ThrottlingException":       newErrorThrottlingException,
    55  }