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

Function GetTypeKey

errbase/encode.go:296–299  ·  view source on GitHub ↗

GetTypeKey retrieve the type key for a given error object. This is meant for use in combination with the Register functions.

(err error)

Source from the content-addressed store, hash-verified

294// GetTypeKey retrieve the type key for a given error object. This
295// is meant for use in combination with the Register functions.
296func GetTypeKey(err error) TypeKey {
297 _, familyName, _ := getTypeDetails(err, true /*onlyFamily*/)
298 return TypeKey(familyName)
299}
300
301// GetTypeMark retrieves the ErrorTypeMark for a given error object.
302// This is meant for use in the markers sub-package.

Callers 15

GetTypeKeyFunction · 0.92
initFunction · 0.92
initFunction · 0.92
initFunction · 0.92
initFunction · 0.92
initFunction · 0.92
initFunction · 0.92
initFunction · 0.92
initFunction · 0.92
initFunction · 0.92
initFunction · 0.92

Calls 2

getTypeDetailsFunction · 0.85
TypeKeyTypeAlias · 0.85

Used in the wild real call sites across dependent graphs

searching dependent graphs…