MCPcopy Index your code
hub / github.com/cockroachdb/errors / GetLeaf

Method GetLeaf

errorspb/errors.pb.go:120–125  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

118}
119
120func (m *EncodedError) GetLeaf() *EncodedErrorLeaf {
121 if x, ok := m.GetError().(*EncodedError_Leaf); ok {
122 return x.Leaf
123 }
124 return nil
125}
126
127func (m *EncodedError) GetWrapper() *EncodedWrapper {
128 if x, ok := m.GetError().(*EncodedError_Wrapper); ok {

Callers 2

TestEncodeDecodeStatusFunction · 0.80
DecodeErrorFunction · 0.80

Calls 1

GetErrorMethod · 0.95

Tested by 1

TestEncodeDecodeStatusFunction · 0.64