Errors¶
All Nydus exceptions inherit from NydusError.
Exception hierarchy¶
NydusErrorBase error for all Nydus operations.
NydusfileErrorError parsing or validating a Nydusfile. Has a
lineattribute indicating the source line number.ConnectorErrorError in a spawner or hatcher connector (e.g., unknown source type, unreadable input).
EggErrorError reading, writing, or packaging an Egg (e.g., corrupted archive, missing modules).
HatchErrorError during the hatching pipeline (e.g., missing required secrets, version incompatibility, invalid hatch
mode, orpassthroughrequested when the target does not match the egg source or the egg’sraw/snapshot is empty).ConfigErrorError in Nydus configuration (e.g., missing registry URL, invalid LLM config).
GitleaksNotFoundErrorRaised when spawning requires secret scanning (
REDACT truewithSOURCEdirectives) but thegitleaksCLI is not installed. Install gitleaks (https://github.com/gitleaks/gitleaks) or set$NYDUS_GITLEAKS_PATH.RegistryErrorError communicating with the Nest registry (e.g., HTTP failures, auth errors, SHA-256 mismatch).
All error classes are importable from pynydus.api.errors.
Full exception reference (auto-generated): pynydus.api.errors