MCPcopy
hub / github.com/etcd-io/etcd / Error

Struct Error

server/internal/clientv2/keys.go:56–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54)
55
56type Error struct {
57 Code int `json:"errorCode"`
58 Message string `json:"message"`
59 Cause string `json:"cause"`
60 Index uint64 `json:"index"`
61}
62
63func (e Error) Error() string {
64 return fmt.Sprintf("%v: %v (%v) [%v]", e.Code, e.Message, e.Cause, e.Index)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected