MCPcopy Create free account
hub / github.com/aws/smithy-go / GenericAPIError

Struct GenericAPIError

errors.go:21–25  ·  view source on GitHub ↗

GenericAPIError provides a generic concrete API error type that SDKs can use to deserialize error responses into. Should be used for unmodeled or untyped errors.

Source from the content-addressed store, hash-verified

19// to deserialize error responses into. Should be used for unmodeled or untyped
20// errors.
21type GenericAPIError struct {
22 Code string
23 Message string
24 Fault ErrorFault
25}
26
27// ErrorCode returns the error code for the API exception.
28func (e *GenericAPIError) ErrorCode() string { return e.Code }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected