github.com/aavshr/aws-sdk-go@v1.41.3/service/storagegateway/errors.go (about) 1 // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. 2 3 package storagegateway 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 // An internal server error has occurred during the request. For more information, 15 // see the error and message fields. 16 ErrCodeInternalServerError = "InternalServerError" 17 18 // ErrCodeInvalidGatewayRequestException for service response error code 19 // "InvalidGatewayRequestException". 20 // 21 // An exception occurred because an invalid gateway request was issued to the 22 // service. For more information, see the error and message fields. 23 ErrCodeInvalidGatewayRequestException = "InvalidGatewayRequestException" 24 25 // ErrCodeServiceUnavailableError for service response error code 26 // "ServiceUnavailableError". 27 // 28 // An internal server error has occurred because the service is unavailable. 29 // For more information, see the error and message fields. 30 ErrCodeServiceUnavailableError = "ServiceUnavailableError" 31 ) 32 33 var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ 34 "InternalServerError": newErrorInternalServerError, 35 "InvalidGatewayRequestException": newErrorInvalidGatewayRequestException, 36 "ServiceUnavailableError": newErrorServiceUnavailableError, 37 }