Expand description
Error code explanations.
This module provides detailed explanations for error codes, accessible
via the --explain flag (e.g., bhc --explain E0001).
§Error Code Conventions
E0xxx: Type errorsE00xx: Basic type mismatches (E0001-E0019)E002x: Shape/dimension errors (E0020-E0039)E003x: Tensor operation errors (E0030-E0039)E004x: Pattern matching errors (E0040-E0049)E005x: Module/import errors (E0050-E0059)W0xxx: WarningsW001x: Unused bindings (W0010-W0019)W002x: Deprecated features (W0020-W0029)
§M10 Phase 4: Contextual Help
Each error explanation includes:
- Documentation links to relevant sections
- Related error codes for similar issues
- Common mistake patterns with fixes
Structs§
- Common
Mistake - A common mistake pattern with its fix.
- Error
Explanation - An error code explanation.
Functions§
- all_
error_ codes - Get all registered error codes.
- format_
explanation - Format an error explanation for display.
- get_
explanation - Look up an error explanation by code.
- print_
explanation - Print an error explanation to stdout.