Versions in this module Expand all Collapse all v0 v0.14.3 May 2, 2026 v0.14.2 Apr 26, 2026 v0.14.1 Apr 21, 2026 Changes in this version + const DSG001 + const DSG002 + const DSG003 + const DSG010 + const ELB001 + const ELB002 + const ELB003 + const ELB004 + const ELB005 + const ELB006 + const EVA001 + const EVA002 + const EVA003 + const EVA004 + const EVA005 + const IMP001 + const IMP002 + const IMP003 + const IMP004 + const IMP005 + const IMP010 + const IMP011 + const IMP012 + const LDR001 + const LDR002 + const LDR003 + const LDR004 + const LDR005 + const LNK001 + const LNK002 + const LNK003 + const LNK004 + const LNK005 + const MOD001 + const MOD002 + const MOD003 + const MOD004 + const MOD005 + const MOD006 + const MOD010 + const MOD011 + const MOD012 + const PAR001 + const PAR002 + const PAR003 + const PAR004 + const PAR005 + const PAR006 + const PAR007 + const PAR008 + const PAR009 + const PAR010 + const PAR011 + const PAR012 + const PAR013 + const PAR014 + const PAR015 + const PAR999 + const RT001 + const RT002 + const RT003 + const RT004 + const RT005 + const RT006 + const RT007 + const RT008 + const RT009 + const TC001 + const TC002 + const TC003 + const TC004 + const TC005 + const TC006 + const TC007 + const TC008 + const TC009 + const TC010 + var ErrorRegistry = map[string]ErrorInfo + func FormatSourceSpan(file string, line, col int) string + func IsDesugarError(code string) bool + func IsElaborationError(code string) bool + func IsImportError(code string) bool + func IsLinkError(code string) bool + func IsLoaderError(code string) bool + func IsModuleError(code string) bool + func IsParserError(code string) bool + func IsRuntimeError(code string) bool + func IsTypeError(code string) bool + func SafeEncodeError(err error, phase string) []byte + func WrapReport(r *Report) error + type Encoded struct + Code string + Context interface{} + Fix Fix + Message string + Meta interface{} + Phase string + SID string + Schema string + SourceSpan string + func NewElaboration(sid, code, msg string, ctx interface{}) Encoded + func NewLinking(sid, code, msg string, ctx interface{}) Encoded + func NewRuntime(sid, code, msg string, ctx interface{}) Encoded + func NewTypecheck(sid, code, msg string, ctx interface{}) Encoded + func (e Encoded) ToJSON() ([]byte, error) + func (e Encoded) WithFix(suggestion string, confidence float64) Encoded + func (e Encoded) WithMeta(meta interface{}) Encoded + func (e Encoded) WithSourceSpan(span string) Encoded + type ErrorContext struct + Constraints []string + Decisions []string + Environment map[string]string + TraceSlice string + type ErrorInfo struct + Category string + Code string + Description string + Phase string + func GetErrorInfo(code string) (ErrorInfo, bool) + type Fix struct + Confidence float64 + Suggestion string + type Report struct + Code string + Data map[string]any + Fix *Fix + Message string + Phase string + Schema string + Span *ast.Span + func AsReport(err error) (*Report, bool) + func NewGeneric(phase string, err error) *Report + func (r *Report) ToJSON(compact bool) (string, error) + type ReportError struct + Rep *Report + func (e *ReportError) Error() string