github.com/aavshr/aws-sdk-go@v1.41.3/service/emr/errors.go (about) 1 // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. 2 3 package emr 4 5 import ( 6 "github.com/aavshr/aws-sdk-go/private/protocol" 7 ) 8 9 const ( 10 11 // ErrCodeInternalServerError for service response error code 12 // "InternalServerError". 13 // 14 // Indicates that an error occurred while processing the request and that the 15 // request was not completed. 16 ErrCodeInternalServerError = "InternalServerError" 17 18 // ErrCodeInternalServerException for service response error code 19 // "InternalServerException". 20 // 21 // This exception occurs when there is an internal failure in the Amazon EMR 22 // service. 23 ErrCodeInternalServerException = "InternalServerException" 24 25 // ErrCodeInvalidRequestException for service response error code 26 // "InvalidRequestException". 27 // 28 // This exception occurs when there is something wrong with user input. 29 ErrCodeInvalidRequestException = "InvalidRequestException" 30 ) 31 32 var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ 33 "InternalServerError": newErrorInternalServerError, 34 "InternalServerException": newErrorInternalServerException, 35 "InvalidRequestException": newErrorInvalidRequestException, 36 }