MCPcopy Index your code
hub / github.com/vmihailenco/msgpack / encodeErrorValue

Function encodeErrorValue

encode_value.go:184–189  ·  view source on GitHub ↗
(e *Encoder, v reflect.Value)

Source from the content-addressed store, hash-verified

182}
183
184func encodeErrorValue(e *Encoder, v reflect.Value) error {
185 if v.IsNil() {
186 return e.EncodeNil()
187 }
188 return e.EncodeString(v.Interface().(error).Error())
189}
190
191func encodeUnsupportedValue(e *Encoder, v reflect.Value) error {
192 return fmt.Errorf("msgpack: Encode(unsupported %s)", v.Type())

Callers

nothing calls this directly

Calls 3

EncodeNilMethod · 0.80
EncodeStringMethod · 0.80
ErrorMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…