Error codes¶
The stable issue registry and helpers for local validation, result inspection, and tool failures. See the error-code table.
Registry¶
ErrorCode
dataclass
¶
CODES
module-attribute
¶
CODES: dict[str, ErrorCode] = {
id_: ErrorCode(
id_,
"info"
if id_ in _INFO_IDS
else "warning"
if id_ in _WARNING_IDS
else "error",
category,
_TITLES[id_],
fix,
)
for category, entries in _GROUPS.items()
for id_, fix in entries.items()
}
error_catalog
¶
Return the JSON-serializable registry ordered by stable ID.
Issues and failures¶
issue
¶
issue(
id: str,
message: str,
*,
path=None,
monitor=None,
severity=None,
fix=None,
**detail,
) -> dict
Create a registered issue, preserving caller detail and overrides.
issue_from_finding
¶
Map a setup, result, or repair-carrying finding to an issue.