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

Method Error

errors.go:109–115  ·  view source on GitHub ↗

Error returns a formatted error for SerializationError

()

Source from the content-addressed store, hash-verified

107
108// Error returns a formatted error for SerializationError
109func (e *SerializationError) Error() string {
110 const msg = "serialization failed"
111 if e.Err == nil {
112 return msg
113 }
114 return fmt.Sprintf("%s: %v", msg, e.Err)
115}
116
117// Unwrap returns the underlying Error in SerializationError
118func (e *SerializationError) Unwrap() error { return e.Err }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected