File: errors.go

package info (click to toggle)
golang-github-aws-aws-sdk-go 1.44.133-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bookworm-proposed-updates
  • size: 245,296 kB
  • sloc: makefile: 120
file content (81 lines) | stat: -rw-r--r-- 3,366 bytes parent folder | download | duplicates (3)
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.

package robomaker

import (
	"github.com/aws/aws-sdk-go/private/protocol"
)

const (

	// ErrCodeConcurrentDeploymentException for service response error code
	// "ConcurrentDeploymentException".
	//
	// The failure percentage threshold percentage was met.
	ErrCodeConcurrentDeploymentException = "ConcurrentDeploymentException"

	// ErrCodeIdempotentParameterMismatchException for service response error code
	// "IdempotentParameterMismatchException".
	//
	// The request uses the same client token as a previous, but non-identical request.
	// Do not reuse a client token with different requests, unless the requests
	// are identical.
	ErrCodeIdempotentParameterMismatchException = "IdempotentParameterMismatchException"

	// ErrCodeInternalServerException for service response error code
	// "InternalServerException".
	//
	// AWS RoboMaker experienced a service issue. Try your call again.
	ErrCodeInternalServerException = "InternalServerException"

	// ErrCodeInvalidParameterException for service response error code
	// "InvalidParameterException".
	//
	// A parameter specified in a request is not valid, is unsupported, or cannot
	// be used. The returned message provides an explanation of the error value.
	ErrCodeInvalidParameterException = "InvalidParameterException"

	// ErrCodeLimitExceededException for service response error code
	// "LimitExceededException".
	//
	// The requested resource exceeds the maximum number allowed, or the number
	// of concurrent stream requests exceeds the maximum number allowed.
	ErrCodeLimitExceededException = "LimitExceededException"

	// ErrCodeResourceAlreadyExistsException for service response error code
	// "ResourceAlreadyExistsException".
	//
	// The specified resource already exists.
	ErrCodeResourceAlreadyExistsException = "ResourceAlreadyExistsException"

	// ErrCodeResourceNotFoundException for service response error code
	// "ResourceNotFoundException".
	//
	// The specified resource does not exist.
	ErrCodeResourceNotFoundException = "ResourceNotFoundException"

	// ErrCodeServiceUnavailableException for service response error code
	// "ServiceUnavailableException".
	//
	// The request has failed due to a temporary failure of the server.
	ErrCodeServiceUnavailableException = "ServiceUnavailableException"

	// ErrCodeThrottlingException for service response error code
	// "ThrottlingException".
	//
	// AWS RoboMaker is temporarily unable to process the request. Try your call
	// again.
	ErrCodeThrottlingException = "ThrottlingException"
)

var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
	"ConcurrentDeploymentException":        newErrorConcurrentDeploymentException,
	"IdempotentParameterMismatchException": newErrorIdempotentParameterMismatchException,
	"InternalServerException":              newErrorInternalServerException,
	"InvalidParameterException":            newErrorInvalidParameterException,
	"LimitExceededException":               newErrorLimitExceededException,
	"ResourceAlreadyExistsException":       newErrorResourceAlreadyExistsException,
	"ResourceNotFoundException":            newErrorResourceNotFoundException,
	"ServiceUnavailableException":          newErrorServiceUnavailableException,
	"ThrottlingException":                  newErrorThrottlingException,
}