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

Method Error

errors.go:71–77  ·  view source on GitHub ↗

Error returns a formatted error for DeserializationError

()

Source from the content-addressed store, hash-verified

69
70// Error returns a formatted error for DeserializationError
71func (e *DeserializationError) Error() string {
72 const msg = "deserialization failed"
73 if e.Err == nil {
74 return msg
75 }
76 return fmt.Sprintf("%s, %v", msg, e.Err)
77}
78
79// Unwrap returns the underlying Error in DeserializationError
80func (e *DeserializationError) Unwrap() error { return e.Err }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected