github.com/aavshr/aws-sdk-go@v1.41.3/service/iotjobsdataplane/errors.go (about) 1 // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. 2 3 package iotjobsdataplane 4 5 import ( 6 "github.com/aavshr/aws-sdk-go/private/protocol" 7 ) 8 9 const ( 10 11 // ErrCodeCertificateValidationException for service response error code 12 // "CertificateValidationException". 13 // 14 // The certificate is invalid. 15 ErrCodeCertificateValidationException = "CertificateValidationException" 16 17 // ErrCodeInvalidRequestException for service response error code 18 // "InvalidRequestException". 19 // 20 // The contents of the request were invalid. For example, this code is returned 21 // when an UpdateJobExecution request contains invalid status details. The message 22 // contains details about the error. 23 ErrCodeInvalidRequestException = "InvalidRequestException" 24 25 // ErrCodeInvalidStateTransitionException for service response error code 26 // "InvalidStateTransitionException". 27 // 28 // An update attempted to change the job execution to a state that is invalid 29 // because of the job execution's current state (for example, an attempt to 30 // change a request in state SUCCESS to state IN_PROGRESS). In this case, the 31 // body of the error message also contains the executionState field. 32 ErrCodeInvalidStateTransitionException = "InvalidStateTransitionException" 33 34 // ErrCodeResourceNotFoundException for service response error code 35 // "ResourceNotFoundException". 36 // 37 // The specified resource does not exist. 38 ErrCodeResourceNotFoundException = "ResourceNotFoundException" 39 40 // ErrCodeServiceUnavailableException for service response error code 41 // "ServiceUnavailableException". 42 // 43 // The service is temporarily unavailable. 44 ErrCodeServiceUnavailableException = "ServiceUnavailableException" 45 46 // ErrCodeTerminalStateException for service response error code 47 // "TerminalStateException". 48 // 49 // The job is in a terminal state. 50 ErrCodeTerminalStateException = "TerminalStateException" 51 52 // ErrCodeThrottlingException for service response error code 53 // "ThrottlingException". 54 // 55 // The rate exceeds the limit. 56 ErrCodeThrottlingException = "ThrottlingException" 57 ) 58 59 var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ 60 "CertificateValidationException": newErrorCertificateValidationException, 61 "InvalidRequestException": newErrorInvalidRequestException, 62 "InvalidStateTransitionException": newErrorInvalidStateTransitionException, 63 "ResourceNotFoundException": newErrorResourceNotFoundException, 64 "ServiceUnavailableException": newErrorServiceUnavailableException, 65 "TerminalStateException": newErrorTerminalStateException, 66 "ThrottlingException": newErrorThrottlingException, 67 }