Error handling reference¶
ManifestError¶
Raised when a bluefox.yml manifest is invalid. Wraps Pydantic validation errors into clean, human-readable messages.
Attributes¶
| Attribute | Type | Description |
|---|---|---|
field | str \| None | The field that caused the error, if applicable. |
Example¶
from bluefox_yml import load_manifest, ManifestError
try:
manifest = load_manifest("bluefox.yml")
except ManifestError as e:
print(e) # human-readable message
print(e.field) # optional field name
format_error¶
Format a ManifestError for CLI or log output. Prefixes the message with bluefox.yml error:.