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
|
// Code generated by smithy-go-codegen DO NOT EDIT.
package types
import (
"fmt"
smithy "github.com/aws/smithy-go"
)
// One or more parameters are not valid.
type DirectConnectClientException struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *DirectConnectClientException) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *DirectConnectClientException) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *DirectConnectClientException) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "DirectConnectClientException"
}
return *e.ErrorCodeOverride
}
func (e *DirectConnectClientException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// A server-side error occurred.
type DirectConnectServerException struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *DirectConnectServerException) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *DirectConnectServerException) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *DirectConnectServerException) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "DirectConnectServerException"
}
return *e.ErrorCodeOverride
}
func (e *DirectConnectServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer }
// A tag key was specified more than once.
type DuplicateTagKeysException struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *DuplicateTagKeysException) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *DuplicateTagKeysException) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *DuplicateTagKeysException) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "DuplicateTagKeysException"
}
return *e.ErrorCodeOverride
}
func (e *DuplicateTagKeysException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// You have reached the limit on the number of tags that can be assigned.
type TooManyTagsException struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *TooManyTagsException) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *TooManyTagsException) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *TooManyTagsException) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "TooManyTagsException"
}
return *e.ErrorCodeOverride
}
func (e *TooManyTagsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
|