craft_parts.overlays.errors module

Overlay error definitions.

exception craft_parts.overlays.errors.IncompatibleChrootError(key, host, chroot)

Bases: OverlayError

Failed to use host package sources because chroot is incompatible.

Parameters:
  • key (str) – os-release key which was tested.

  • host (str) – value from host os-release which was tested.

  • chroot (str) – value from chroot os-release which was tested.

exception craft_parts.overlays.errors.OverlayChrootExecutionError(message)

Bases: OverlayError

Failed to execute in a chroot environment.

Parameters:

message (str)

exception craft_parts.overlays.errors.OverlayError(brief, details=None, resolution=None, doc_slug=None)

Bases: PartsError

Base class for overlay handler errors.

Parameters:
  • brief (str)

  • details (str | None)

  • resolution (str | None)

  • doc_slug (str | None)

exception craft_parts.overlays.errors.OverlayMountError(mountpoint, message)

Bases: OverlayError

Failed to mount an overlay filesystem.

Parameters:
  • mountpoint (str) – The filesystem mount point.

  • message (str) – The error message.

exception craft_parts.overlays.errors.OverlayUnmountError(mountpoint, message)

Bases: OverlayError

Failed to unmount an overlay filesystem.

Parameters:
  • mountpoint (str) – The filesystem mount point.

  • message (str) – The error message.