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

     1  // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
     2  
     3  package iotdataplane
     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 specified version does not match the version of the document.
    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  	// ErrCodeMethodNotAllowedException for service response error code
    30  	// "MethodNotAllowedException".
    31  	//
    32  	// The specified combination of HTTP verb and URI is not supported.
    33  	ErrCodeMethodNotAllowedException = "MethodNotAllowedException"
    34  
    35  	// ErrCodeRequestEntityTooLargeException for service response error code
    36  	// "RequestEntityTooLargeException".
    37  	//
    38  	// The payload exceeds the maximum size allowed.
    39  	ErrCodeRequestEntityTooLargeException = "RequestEntityTooLargeException"
    40  
    41  	// ErrCodeResourceNotFoundException for service response error code
    42  	// "ResourceNotFoundException".
    43  	//
    44  	// The specified resource does not exist.
    45  	ErrCodeResourceNotFoundException = "ResourceNotFoundException"
    46  
    47  	// ErrCodeServiceUnavailableException for service response error code
    48  	// "ServiceUnavailableException".
    49  	//
    50  	// The service is temporarily unavailable.
    51  	ErrCodeServiceUnavailableException = "ServiceUnavailableException"
    52  
    53  	// ErrCodeThrottlingException for service response error code
    54  	// "ThrottlingException".
    55  	//
    56  	// The rate exceeds the limit.
    57  	ErrCodeThrottlingException = "ThrottlingException"
    58  
    59  	// ErrCodeUnauthorizedException for service response error code
    60  	// "UnauthorizedException".
    61  	//
    62  	// You are not authorized to perform this operation.
    63  	ErrCodeUnauthorizedException = "UnauthorizedException"
    64  
    65  	// ErrCodeUnsupportedDocumentEncodingException for service response error code
    66  	// "UnsupportedDocumentEncodingException".
    67  	//
    68  	// The document encoding is not supported.
    69  	ErrCodeUnsupportedDocumentEncodingException = "UnsupportedDocumentEncodingException"
    70  )
    71  
    72  var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
    73  	"ConflictException":                    newErrorConflictException,
    74  	"InternalFailureException":             newErrorInternalFailureException,
    75  	"InvalidRequestException":              newErrorInvalidRequestException,
    76  	"MethodNotAllowedException":            newErrorMethodNotAllowedException,
    77  	"RequestEntityTooLargeException":       newErrorRequestEntityTooLargeException,
    78  	"ResourceNotFoundException":            newErrorResourceNotFoundException,
    79  	"ServiceUnavailableException":          newErrorServiceUnavailableException,
    80  	"ThrottlingException":                  newErrorThrottlingException,
    81  	"UnauthorizedException":                newErrorUnauthorizedException,
    82  	"UnsupportedDocumentEncodingException": newErrorUnsupportedDocumentEncodingException,
    83  }