MCPcopy
hub / github.com/larksuite/cli / LookupCodeMeta

Function LookupCodeMeta

internal/errclass/codemeta.go:78–81  ·  view source on GitHub ↗

LookupCodeMeta is the single lookup entry. Returns ok=false for unknown codes — the caller (BuildAPIError) is responsible for falling back to CategoryAPI/SubtypeUnknown.

(code int)

Source from the content-addressed store, hash-verified

76// the caller (BuildAPIError) is responsible for falling back to
77// CategoryAPI/SubtypeUnknown.
78func LookupCodeMeta(code int) (CodeMeta, bool) {
79 m, ok := codeMeta[code]
80 return m, ok
81}
82
83// mergeCodeMeta is invoked by sub-table init() functions to merge service-specific
84// codes into the central registry. Panics on duplicate code so a misregistration

Calls

no outgoing calls