MCPcopy Create free account
hub / github.com/segmentio/encoding / Error

Method Error

thrift/error.go:33–51  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

31}
32
33func (e *decodeError) Error() string {
34 s := strings.Builder{}
35 s.Grow(256)
36 s.WriteString("decoding thrift payload: ")
37
38 if len(e.path) != 0 {
39 n := len(e.path) - 1
40 for i := n; i >= 0; i-- {
41 if i < n {
42 s.WriteString(" → ")
43 }
44 s.WriteString(e.path[i].Error())
45 }
46 s.WriteString(": ")
47 }
48
49 s.WriteString(e.base.Error())
50 return s.String()
51}
52
53func (e *decodeError) Unwrap() error { return e.base }
54

Callers

nothing calls this directly

Calls 2

WriteStringMethod · 0.65
StringMethod · 0.65

Tested by

no test coverage detected