github.com/aavshr/aws-sdk-go@v1.41.3/service/braket/errors.go (about) 1 // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. 2 3 package braket 4 5 import ( 6 "github.com/aavshr/aws-sdk-go/private/protocol" 7 ) 8 9 const ( 10 11 // ErrCodeAccessDeniedException for service response error code 12 // "AccessDeniedException". 13 // 14 // You do not have sufficient access to perform this action. 15 ErrCodeAccessDeniedException = "AccessDeniedException" 16 17 // ErrCodeConflictException for service response error code 18 // "ConflictException". 19 // 20 // An error occurred due to a conflict. 21 ErrCodeConflictException = "ConflictException" 22 23 // ErrCodeDeviceOfflineException for service response error code 24 // "DeviceOfflineException". 25 // 26 // The specified device is currently offline. 27 ErrCodeDeviceOfflineException = "DeviceOfflineException" 28 29 // ErrCodeDeviceRetiredException for service response error code 30 // "DeviceRetiredException". 31 // 32 // The specified device has been retired. 33 ErrCodeDeviceRetiredException = "DeviceRetiredException" 34 35 // ErrCodeInternalServiceException for service response error code 36 // "InternalServiceException". 37 // 38 // The request processing has failed because of an unknown error, exception, 39 // or failure. 40 ErrCodeInternalServiceException = "InternalServiceException" 41 42 // ErrCodeResourceNotFoundException for service response error code 43 // "ResourceNotFoundException". 44 // 45 // The specified resource was not found. 46 ErrCodeResourceNotFoundException = "ResourceNotFoundException" 47 48 // ErrCodeServiceQuotaExceededException for service response error code 49 // "ServiceQuotaExceededException". 50 // 51 // The request failed because a service quota is exceeded. 52 ErrCodeServiceQuotaExceededException = "ServiceQuotaExceededException" 53 54 // ErrCodeThrottlingException for service response error code 55 // "ThrottlingException". 56 // 57 // The throttling rate limit is met. 58 ErrCodeThrottlingException = "ThrottlingException" 59 60 // ErrCodeValidationException for service response error code 61 // "ValidationException". 62 // 63 // The input fails to satisfy the constraints specified by an AWS service. 64 ErrCodeValidationException = "ValidationException" 65 ) 66 67 var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ 68 "AccessDeniedException": newErrorAccessDeniedException, 69 "ConflictException": newErrorConflictException, 70 "DeviceOfflineException": newErrorDeviceOfflineException, 71 "DeviceRetiredException": newErrorDeviceRetiredException, 72 "InternalServiceException": newErrorInternalServiceException, 73 "ResourceNotFoundException": newErrorResourceNotFoundException, 74 "ServiceQuotaExceededException": newErrorServiceQuotaExceededException, 75 "ThrottlingException": newErrorThrottlingException, 76 "ValidationException": newErrorValidationException, 77 }