File: errors.go

package info (click to toggle)
golang-github-aws-aws-sdk-go 1.49.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 312,636 kB
  • sloc: makefile: 120
file content (90 lines) | stat: -rw-r--r-- 3,706 bytes parent folder | download
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
82
83
84
85
86
87
88
89
90
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.

package applicationdiscoveryservice

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

const (

	// ErrCodeAuthorizationErrorException for service response error code
	// "AuthorizationErrorException".
	//
	// The user does not have permission to perform the action. Check the IAM policy
	// associated with this user.
	ErrCodeAuthorizationErrorException = "AuthorizationErrorException"

	// ErrCodeConflictErrorException for service response error code
	// "ConflictErrorException".
	//
	// Conflict error.
	ErrCodeConflictErrorException = "ConflictErrorException"

	// ErrCodeHomeRegionNotSetException for service response error code
	// "HomeRegionNotSetException".
	//
	// The home Region is not set. Set the home Region to continue.
	ErrCodeHomeRegionNotSetException = "HomeRegionNotSetException"

	// ErrCodeInvalidParameterException for service response error code
	// "InvalidParameterException".
	//
	// One or more parameters are not valid. Verify the parameters and try again.
	ErrCodeInvalidParameterException = "InvalidParameterException"

	// ErrCodeInvalidParameterValueException for service response error code
	// "InvalidParameterValueException".
	//
	// The value of one or more parameters are either invalid or out of range. Verify
	// the parameter values and try again.
	ErrCodeInvalidParameterValueException = "InvalidParameterValueException"

	// ErrCodeLimitExceededException for service response error code
	// "LimitExceededException".
	//
	// The limit of 200 configuration IDs per request has been exceeded.
	ErrCodeLimitExceededException = "LimitExceededException"

	// ErrCodeOperationNotPermittedException for service response error code
	// "OperationNotPermittedException".
	//
	// This operation is not permitted.
	ErrCodeOperationNotPermittedException = "OperationNotPermittedException"

	// ErrCodeResourceInUseException for service response error code
	// "ResourceInUseException".
	//
	// This issue occurs when the same clientRequestToken is used with the StartImportTask
	// action, but with different parameters. For example, you use the same request
	// token but have two different import URLs, you can encounter this issue. If
	// the import tasks are meant to be different, use a different clientRequestToken,
	// and try again.
	ErrCodeResourceInUseException = "ResourceInUseException"

	// ErrCodeResourceNotFoundException for service response error code
	// "ResourceNotFoundException".
	//
	// The specified configuration ID was not located. Verify the configuration
	// ID and try again.
	ErrCodeResourceNotFoundException = "ResourceNotFoundException"

	// ErrCodeServerInternalErrorException for service response error code
	// "ServerInternalErrorException".
	//
	// The server experienced an internal error. Try again.
	ErrCodeServerInternalErrorException = "ServerInternalErrorException"
)

var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
	"AuthorizationErrorException":    newErrorAuthorizationErrorException,
	"ConflictErrorException":         newErrorConflictErrorException,
	"HomeRegionNotSetException":      newErrorHomeRegionNotSetException,
	"InvalidParameterException":      newErrorInvalidParameterException,
	"InvalidParameterValueException": newErrorInvalidParameterValueException,
	"LimitExceededException":         newErrorLimitExceededException,
	"OperationNotPermittedException": newErrorOperationNotPermittedException,
	"ResourceInUseException":         newErrorResourceInUseException,
	"ResourceNotFoundException":      newErrorResourceNotFoundException,
	"ServerInternalErrorException":   newErrorServerInternalErrorException,
}