File: errors.go

package info (click to toggle)
golang-github-aws-aws-sdk-go-v2 1.17.1-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 384,244 kB
  • sloc: java: 13,538; makefile: 400; sh: 137
file content (126 lines) | stat: -rw-r--r-- 3,599 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
// Code generated by smithy-go-codegen DO NOT EDIT.

package types

import (
	"fmt"
	smithy "github.com/aws/smithy-go"
)

// The number of domains has exceeded the allowed threshold for the account.
type DomainLimitExceeded struct {
	Message *string

	noSmithyDocumentSerde
}

func (e *DomainLimitExceeded) Error() string {
	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *DomainLimitExceeded) ErrorMessage() string {
	if e.Message == nil {
		return ""
	}
	return *e.Message
}
func (e *DomainLimitExceeded) ErrorCode() string             { return "DomainLimitExceeded" }
func (e *DomainLimitExceeded) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }

// The request is already in progress for the domain.
type DuplicateRequest struct {
	Message *string

	noSmithyDocumentSerde
}

func (e *DuplicateRequest) Error() string {
	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *DuplicateRequest) ErrorMessage() string {
	if e.Message == nil {
		return ""
	}
	return *e.Message
}
func (e *DuplicateRequest) ErrorCode() string             { return "DuplicateRequest" }
func (e *DuplicateRequest) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }

// The requested item is not acceptable. For example, for APIs that accept a domain
// name, the request might specify a domain name that doesn't belong to the account
// that submitted the request. For AcceptDomainTransferFromAnotherAwsAccount, the
// password might be invalid.
type InvalidInput struct {
	Message *string

	noSmithyDocumentSerde
}

func (e *InvalidInput) Error() string {
	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *InvalidInput) ErrorMessage() string {
	if e.Message == nil {
		return ""
	}
	return *e.Message
}
func (e *InvalidInput) ErrorCode() string             { return "InvalidInput" }
func (e *InvalidInput) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }

// The number of operations or jobs running exceeded the allowed threshold for the
// account.
type OperationLimitExceeded struct {
	Message *string

	noSmithyDocumentSerde
}

func (e *OperationLimitExceeded) Error() string {
	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *OperationLimitExceeded) ErrorMessage() string {
	if e.Message == nil {
		return ""
	}
	return *e.Message
}
func (e *OperationLimitExceeded) ErrorCode() string             { return "OperationLimitExceeded" }
func (e *OperationLimitExceeded) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }

// The top-level domain does not support this operation.
type TLDRulesViolation struct {
	Message *string

	noSmithyDocumentSerde
}

func (e *TLDRulesViolation) Error() string {
	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *TLDRulesViolation) ErrorMessage() string {
	if e.Message == nil {
		return ""
	}
	return *e.Message
}
func (e *TLDRulesViolation) ErrorCode() string             { return "TLDRulesViolation" }
func (e *TLDRulesViolation) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }

// Amazon Route 53 does not support this top-level domain (TLD).
type UnsupportedTLD struct {
	Message *string

	noSmithyDocumentSerde
}

func (e *UnsupportedTLD) Error() string {
	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *UnsupportedTLD) ErrorMessage() string {
	if e.Message == nil {
		return ""
	}
	return *e.Message
}
func (e *UnsupportedTLD) ErrorCode() string             { return "UnsupportedTLD" }
func (e *UnsupportedTLD) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }