github.com/aavshr/aws-sdk-go@v1.41.3/service/iotthingsgraph/errors.go (about) 1 // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. 2 3 package iotthingsgraph 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 ErrCodeInternalFailureException = "InternalFailureException" 14 15 // ErrCodeInvalidRequestException for service response error code 16 // "InvalidRequestException". 17 ErrCodeInvalidRequestException = "InvalidRequestException" 18 19 // ErrCodeLimitExceededException for service response error code 20 // "LimitExceededException". 21 ErrCodeLimitExceededException = "LimitExceededException" 22 23 // ErrCodeResourceAlreadyExistsException for service response error code 24 // "ResourceAlreadyExistsException". 25 ErrCodeResourceAlreadyExistsException = "ResourceAlreadyExistsException" 26 27 // ErrCodeResourceInUseException for service response error code 28 // "ResourceInUseException". 29 ErrCodeResourceInUseException = "ResourceInUseException" 30 31 // ErrCodeResourceNotFoundException for service response error code 32 // "ResourceNotFoundException". 33 ErrCodeResourceNotFoundException = "ResourceNotFoundException" 34 35 // ErrCodeThrottlingException for service response error code 36 // "ThrottlingException". 37 ErrCodeThrottlingException = "ThrottlingException" 38 ) 39 40 var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ 41 "InternalFailureException": newErrorInternalFailureException, 42 "InvalidRequestException": newErrorInvalidRequestException, 43 "LimitExceededException": newErrorLimitExceededException, 44 "ResourceAlreadyExistsException": newErrorResourceAlreadyExistsException, 45 "ResourceInUseException": newErrorResourceInUseException, 46 "ResourceNotFoundException": newErrorResourceNotFoundException, 47 "ThrottlingException": newErrorThrottlingException, 48 }