parse_errors
Class info¶
Classes¶
| Name | Children | Inherits |
|---|---|---|
| ParseErrorInfo configz.parse_errors Structured information about a parse error. |
🛈 DocStrings¶
Shared parse error handling for JSON and TOML.
ParseErrorInfo
dataclass
¶
Structured information about a parse error.
Source code in src/configz/parse_errors.py
format
¶
Format error with source context for display.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
context_lines
|
int
|
Number of lines to show before/after the error line. |
2
|
use_color
|
bool
|
Whether to include ANSI color codes. |
True
|