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

     1  // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
     2  
     3  package iotevents
     4  
     5  import (
     6  	"github.com/aavshr/aws-sdk-go/private/protocol"
     7  )
     8  
     9  const (
    10  
    11  	// ErrCodeInternalFailureException for service response error code
    12  	// "InternalFailureException".
    13  	//
    14  	// An internal failure occurred.
    15  	ErrCodeInternalFailureException = "InternalFailureException"
    16  
    17  	// ErrCodeInvalidRequestException for service response error code
    18  	// "InvalidRequestException".
    19  	//
    20  	// The request was invalid.
    21  	ErrCodeInvalidRequestException = "InvalidRequestException"
    22  
    23  	// ErrCodeLimitExceededException for service response error code
    24  	// "LimitExceededException".
    25  	//
    26  	// A limit was exceeded.
    27  	ErrCodeLimitExceededException = "LimitExceededException"
    28  
    29  	// ErrCodeResourceAlreadyExistsException for service response error code
    30  	// "ResourceAlreadyExistsException".
    31  	//
    32  	// The resource already exists.
    33  	ErrCodeResourceAlreadyExistsException = "ResourceAlreadyExistsException"
    34  
    35  	// ErrCodeResourceInUseException for service response error code
    36  	// "ResourceInUseException".
    37  	//
    38  	// The resource is in use.
    39  	ErrCodeResourceInUseException = "ResourceInUseException"
    40  
    41  	// ErrCodeResourceNotFoundException for service response error code
    42  	// "ResourceNotFoundException".
    43  	//
    44  	// The resource was not found.
    45  	ErrCodeResourceNotFoundException = "ResourceNotFoundException"
    46  
    47  	// ErrCodeServiceUnavailableException for service response error code
    48  	// "ServiceUnavailableException".
    49  	//
    50  	// The service is currently unavailable.
    51  	ErrCodeServiceUnavailableException = "ServiceUnavailableException"
    52  
    53  	// ErrCodeThrottlingException for service response error code
    54  	// "ThrottlingException".
    55  	//
    56  	// The request could not be completed due to throttling.
    57  	ErrCodeThrottlingException = "ThrottlingException"
    58  
    59  	// ErrCodeUnsupportedOperationException for service response error code
    60  	// "UnsupportedOperationException".
    61  	//
    62  	// The requested operation is not supported.
    63  	ErrCodeUnsupportedOperationException = "UnsupportedOperationException"
    64  )
    65  
    66  var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
    67  	"InternalFailureException":       newErrorInternalFailureException,
    68  	"InvalidRequestException":        newErrorInvalidRequestException,
    69  	"LimitExceededException":         newErrorLimitExceededException,
    70  	"ResourceAlreadyExistsException": newErrorResourceAlreadyExistsException,
    71  	"ResourceInUseException":         newErrorResourceInUseException,
    72  	"ResourceNotFoundException":      newErrorResourceNotFoundException,
    73  	"ServiceUnavailableException":    newErrorServiceUnavailableException,
    74  	"ThrottlingException":            newErrorThrottlingException,
    75  	"UnsupportedOperationException":  newErrorUnsupportedOperationException,
    76  }