github.com/aavshr/aws-sdk-go@v1.41.3/service/forecastservice/errors.go (about) 1 // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. 2 3 package forecastservice 4 5 import ( 6 "github.com/aavshr/aws-sdk-go/private/protocol" 7 ) 8 9 const ( 10 11 // ErrCodeInvalidInputException for service response error code 12 // "InvalidInputException". 13 // 14 // We can't process the request because it includes an invalid value or a value 15 // that exceeds the valid range. 16 ErrCodeInvalidInputException = "InvalidInputException" 17 18 // ErrCodeInvalidNextTokenException for service response error code 19 // "InvalidNextTokenException". 20 // 21 // The token is not valid. Tokens expire after 24 hours. 22 ErrCodeInvalidNextTokenException = "InvalidNextTokenException" 23 24 // ErrCodeLimitExceededException for service response error code 25 // "LimitExceededException". 26 // 27 // The limit on the number of resources per account has been exceeded. 28 ErrCodeLimitExceededException = "LimitExceededException" 29 30 // ErrCodeResourceAlreadyExistsException for service response error code 31 // "ResourceAlreadyExistsException". 32 // 33 // There is already a resource with this name. Try again with a different name. 34 ErrCodeResourceAlreadyExistsException = "ResourceAlreadyExistsException" 35 36 // ErrCodeResourceInUseException for service response error code 37 // "ResourceInUseException". 38 // 39 // The specified resource is in use. 40 ErrCodeResourceInUseException = "ResourceInUseException" 41 42 // ErrCodeResourceNotFoundException for service response error code 43 // "ResourceNotFoundException". 44 // 45 // We can't find a resource with that Amazon Resource Name (ARN). Check the 46 // ARN and try again. 47 ErrCodeResourceNotFoundException = "ResourceNotFoundException" 48 ) 49 50 var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ 51 "InvalidInputException": newErrorInvalidInputException, 52 "InvalidNextTokenException": newErrorInvalidNextTokenException, 53 "LimitExceededException": newErrorLimitExceededException, 54 "ResourceAlreadyExistsException": newErrorResourceAlreadyExistsException, 55 "ResourceInUseException": newErrorResourceInUseException, 56 "ResourceNotFoundException": newErrorResourceNotFoundException, 57 }