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)
| 76 | // the caller (BuildAPIError) is responsible for falling back to |
| 77 | // CategoryAPI/SubtypeUnknown. |
| 78 | func 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 |
no outgoing calls