github.com/aavshr/aws-sdk-go@v1.41.3/service/batch/errors.go (about) 1 // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. 2 3 package batch 4 5 import ( 6 "github.com/aavshr/aws-sdk-go/private/protocol" 7 ) 8 9 const ( 10 11 // ErrCodeClientException for service response error code 12 // "ClientException". 13 // 14 // These errors are usually caused by a client action, such as using an action 15 // or resource on behalf of a user that doesn't have permissions to use the 16 // action or resource, or specifying an identifier that's not valid. 17 ErrCodeClientException = "ClientException" 18 19 // ErrCodeServerException for service response error code 20 // "ServerException". 21 // 22 // These errors are usually caused by a server issue. 23 ErrCodeServerException = "ServerException" 24 ) 25 26 var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ 27 "ClientException": newErrorClientException, 28 "ServerException": newErrorServerException, 29 }