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