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 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230
|
// Code generated by smithy-go-codegen DO NOT EDIT.
package types
import (
"fmt"
smithy "github.com/aws/smithy-go"
)
// Your request caused an exception with an internal dependency. Contact customer
// support.
type InternalDependencyException struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *InternalDependencyException) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *InternalDependencyException) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *InternalDependencyException) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "InternalDependencyException"
}
return *e.ErrorCodeOverride
}
func (e *InternalDependencyException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer }
// An internal failure occurred.
type InternalFailure struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *InternalFailure) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *InternalFailure) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *InternalFailure) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "InternalFailure"
}
return *e.ErrorCodeOverride
}
func (e *InternalFailure) ErrorFault() smithy.ErrorFault { return smithy.FaultServer }
// The stream processing failed because of an unknown error, exception or failure.
// Try your request again.
type InternalStreamFailure struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *InternalStreamFailure) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *InternalStreamFailure) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *InternalStreamFailure) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "InternalStreamFailure"
}
return *e.ErrorCodeOverride
}
func (e *InternalStreamFailure) ErrorFault() smithy.ErrorFault { return smithy.FaultServer }
// Model (owned by the customer in the container) returned 4xx or 5xx error code.
type ModelError struct {
Message *string
ErrorCodeOverride *string
OriginalStatusCode *int32
OriginalMessage *string
LogStreamArn *string
noSmithyDocumentSerde
}
func (e *ModelError) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *ModelError) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *ModelError) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "ModelError"
}
return *e.ErrorCodeOverride
}
func (e *ModelError) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// Either a serverless endpoint variant's resources are still being provisioned,
// or a multi-model endpoint is still downloading or loading the target model. Wait
// and try your request again.
type ModelNotReadyException struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *ModelNotReadyException) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *ModelNotReadyException) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *ModelNotReadyException) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "ModelNotReadyException"
}
return *e.ErrorCodeOverride
}
func (e *ModelNotReadyException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// An error occurred while streaming the response body. This error can have the
// following error codes: ModelInvocationTimeExceeded The model failed to finish
// sending the response within the timeout period allowed by Amazon SageMaker.
// StreamBroken The Transmission Control Protocol (TCP) connection between the
// client and the model was reset or closed.
type ModelStreamError struct {
Message *string
ErrorCodeOverride *string
ErrorCode_ *string
noSmithyDocumentSerde
}
func (e *ModelStreamError) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *ModelStreamError) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *ModelStreamError) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "ModelStreamError"
}
return *e.ErrorCodeOverride
}
func (e *ModelStreamError) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// The service is unavailable. Try your call again.
type ServiceUnavailable struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *ServiceUnavailable) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *ServiceUnavailable) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *ServiceUnavailable) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "ServiceUnavailable"
}
return *e.ErrorCodeOverride
}
func (e *ServiceUnavailable) ErrorFault() smithy.ErrorFault { return smithy.FaultServer }
// Inspect your request and try again.
type ValidationError struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *ValidationError) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *ValidationError) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *ValidationError) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "ValidationError"
}
return *e.ErrorCodeOverride
}
func (e *ValidationError) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
|