github.com/aavshr/aws-sdk-go@v1.41.3/service/autoscalingplans/errors.go (about) 1 // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. 2 3 package autoscalingplans 4 5 import ( 6 "github.com/aavshr/aws-sdk-go/private/protocol" 7 ) 8 9 const ( 10 11 // ErrCodeConcurrentUpdateException for service response error code 12 // "ConcurrentUpdateException". 13 // 14 // Concurrent updates caused an exception, for example, if you request an update 15 // to a scaling plan that already has a pending update. 16 ErrCodeConcurrentUpdateException = "ConcurrentUpdateException" 17 18 // ErrCodeInternalServiceException for service response error code 19 // "InternalServiceException". 20 // 21 // The service encountered an internal error. 22 ErrCodeInternalServiceException = "InternalServiceException" 23 24 // ErrCodeInvalidNextTokenException for service response error code 25 // "InvalidNextTokenException". 26 // 27 // The token provided is not valid. 28 ErrCodeInvalidNextTokenException = "InvalidNextTokenException" 29 30 // ErrCodeLimitExceededException for service response error code 31 // "LimitExceededException". 32 // 33 // Your account exceeded a limit. This exception is thrown when a per-account 34 // resource limit is exceeded. 35 ErrCodeLimitExceededException = "LimitExceededException" 36 37 // ErrCodeObjectNotFoundException for service response error code 38 // "ObjectNotFoundException". 39 // 40 // The specified object could not be found. 41 ErrCodeObjectNotFoundException = "ObjectNotFoundException" 42 43 // ErrCodeValidationException for service response error code 44 // "ValidationException". 45 // 46 // An exception was thrown for a validation issue. Review the parameters provided. 47 ErrCodeValidationException = "ValidationException" 48 ) 49 50 var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ 51 "ConcurrentUpdateException": newErrorConcurrentUpdateException, 52 "InternalServiceException": newErrorInternalServiceException, 53 "InvalidNextTokenException": newErrorInvalidNextTokenException, 54 "LimitExceededException": newErrorLimitExceededException, 55 "ObjectNotFoundException": newErrorObjectNotFoundException, 56 "ValidationException": newErrorValidationException, 57 }