Documentation
¶
Overview ¶
Package errorcodes extracts the framework's diagnostic codes from the runtime source of truth and renders the generated error-code reference page. The page is never hand-maintained: TestErrorCodeReferenceIsGenerated regenerates it from internal/runtime/diagnostic_metadata.go and fails if the committed page drifts, so every code a developer (or agent) can see in a report is always looked-up-able with its cause anchor and remediation.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RenderPage ¶
RenderPage renders the committed error-code reference markdown from codes.
Types ¶
type ErrorCode ¶
ErrorCode is one diagnostic code with its docs anchor and remediation text.
func ExtractCodes ¶
ExtractCodes parses the diagnostic-metadata source and returns every code, sorted by code, deduplicated (the descriptive switch wins over the phase-keyed panic helpers, which only add codes the switch omits).