craft_parts.errors module¶
Craft parts errors.
- exception craft_parts.errors.CallbackRegistrationError(message)¶
Bases:
PartsErrorError in callback function registration.
- Parameters:
message (
str) – the error message.
- exception craft_parts.errors.CopyFileNotFound(name)¶
Bases:
PartsErrorAn attempt was made to copy a file that doesn’t exist.
- Parameters:
name (
str) – The file name.
- exception craft_parts.errors.CopyTreeError(message)¶
Bases:
PartsErrorFailed to copy or link a file tree.
- Parameters:
message (
str) – The error message.
- exception craft_parts.errors.DebError(deb_path, command, exit_code)¶
Bases:
PartsErrorA “deb”-related command failed.
- exception craft_parts.errors.FeatureError(message, details=None)¶
Bases:
PartsErrorA feature is not configured as expected.
- exception craft_parts.errors.FileOrganizeError(*, part_name, message)¶
Bases:
PartsErrorFailed to organize a file layout.
- Parameters:
- classmethod from_merge_conflicts(*, part_name, key, destination, conflicts)¶
Create from directory merge conflicts.
- exception craft_parts.errors.FilesetConflict(conflicting_files)¶
Bases:
PartsErrorInconsistent stage to prime filtering.
- exception craft_parts.errors.FilesetError(*, name, message)¶
Bases:
PartsErrorAn invalid fileset operation was performed.
- exception craft_parts.errors.FilesystemMountError(brief, *, details=None, resolution=None)¶
Bases:
PartsErrorErrors related to filesystem mounts.
- exception craft_parts.errors.InvalidAction(message)¶
Bases:
PartsErrorAn attempt was made to execute an action with invalid parameters.
- Parameters:
message (
str) – The error message.
- exception craft_parts.errors.InvalidApplicationName(name)¶
Bases:
PartsErrorThe application name contains invalid characters.
- Parameters:
name (
str) – The invalid application name.
- exception craft_parts.errors.InvalidArchitecture(arch_name)¶
Bases:
PartsErrorThe machine architecture is not supported.
- Parameters:
arch_name (
str) – The unsupported architecture name.
- exception craft_parts.errors.InvalidControlAPICall(*, part_name, scriptlet_name, message)¶
Bases:
PartsErrorA control API call was made with invalid parameters.
- exception craft_parts.errors.InvalidPartName(part_name)¶
Bases:
PartsErrorAn operation was requested on a part that’s not in the parts specification.
- Parameters:
part_name (
str) – The invalid part name.
- exception craft_parts.errors.InvalidPlugin(plugin_name, *, part_name)¶
Bases:
PartsErrorA request was made to use a plugin that’s not registered.
- exception craft_parts.errors.OsReleaseCodenameError¶
Bases:
PartsErrorFailed to determine the host operating system version codename.
- exception craft_parts.errors.OsReleaseIdError¶
Bases:
PartsErrorFailed to determine the host operating system identification string.
- exception craft_parts.errors.OsReleaseNameError¶
Bases:
PartsErrorFailed to determine the host operating system name.
- exception craft_parts.errors.OsReleaseVersionIdError¶
Bases:
PartsErrorFailed to determine the host operating system version.
- exception craft_parts.errors.OverlayPackageNotFound(*, part_name, package_name)¶
Bases:
PartsErrorFailed to install an overlay package.
- exception craft_parts.errors.OverlayPermissionError¶
Bases:
PartsErrorA project using overlays was processed by a non-privileged user.
- exception craft_parts.errors.OverlayPlatformError¶
Bases:
PartsErrorA project using overlays was processed on a non-Linux platform.
- exception craft_parts.errors.OverlayStageConflict(*, part_name, overlay_part_name, conflicting_files, partition=None)¶
Bases:
PartsErrorA conflict between contents to be staged from the overlay and from the build step.
- exception craft_parts.errors.PartDependencyCycle(*, part_names=None)¶
Bases:
PartsErrorA dependency cycle has been detected in the parts definition.
- exception craft_parts.errors.PartFilesConflict(*, part_name, other_part_name, conflicting_files, partition=None)¶
Bases:
PartsErrorDifferent parts list the same files with different contents.
- exception craft_parts.errors.PartNameConflict(*, part_name, conflicting_part_name)¶
Bases:
PartsErrorA part name conflicts with another part name because one is nested inside the other.
- exception craft_parts.errors.PartSpecificationError(*, part_name, message)¶
Bases:
PartsErrorA part was not correctly specified.
- Parameters:
- classmethod from_validation_error(*, part_name, error_list)¶
Create a PartSpecificationError from a pydantic error list.
- Parameters:
- Return type:
- exception craft_parts.errors.PartitionError(brief, *, details=None, resolution=None)¶
Bases:
PartsErrorErrors related to partitions.
- exception craft_parts.errors.PartitionNotFound(partition_name, partitions)¶
Bases:
PartitionUsageErrorA partition has been specified that does not exist.
- exception craft_parts.errors.PartitionUsageError(error_list, partitions, brief=None)¶
Bases:
PartitionErrorError for a list of invalid partition usages.
- exception craft_parts.errors.PartitionUsageWarning(warning_list)¶
Bases:
PartitionError,WarningWarnings for possibly invalid usages of partitions.
- exception craft_parts.errors.PartsError(brief, details=None, resolution=None, doc_slug=None)¶
Bases:
ExceptionUnexpected error.
- Parameters:
- exception craft_parts.errors.PluginBuildError(*, part_name, plugin_name, stderr=None)¶
Bases:
UserExecutionErrorPlugin build script failed at runtime.
- exception craft_parts.errors.PluginCleanError(*, part_name)¶
Bases:
PartsErrorScript to clean strict build preparation failed at runtime.
- Parameters:
part_name (
str) – The name of the part being processed.
- exception craft_parts.errors.PluginEnvironmentValidationError(*, part_name, reason)¶
Bases:
PartsErrorPlugin environment validation failed at runtime.
- exception craft_parts.errors.PluginNotStrict(plugin_name, *, part_name)¶
Bases:
PartsErrorA request was made to use a plugin that’s not strict.
- exception craft_parts.errors.PluginPullError(*, part_name)¶
Bases:
PartsErrorPlugin pull script failed at runtime.
- Parameters:
part_name (
str) – The name of the part being processed.
- exception craft_parts.errors.ScriptletRunError(*, part_name, scriptlet_name, exit_code, stderr=None)¶
Bases:
UserExecutionErrorA scriptlet execution failed.
- exception craft_parts.errors.StageFilesConflict(*, part_name, conflicting_files)¶
Bases:
PartsErrorFiles from a part conflict with files already being staged.
- exception craft_parts.errors.StagePackageNotFound(*, part_name, package_name)¶
Bases:
PartsErrorFailed to install a stage package.
- exception craft_parts.errors.UndefinedPlugin(*, part_name)¶
Bases:
PartsErrorThe part didn’t define a plugin and the part name is not a valid plugin name.
- Parameters:
part_name (
str) – The name of the part with no plugin definition.
- exception craft_parts.errors.UnsupportedBuildAttributesError(unsupported, plugin_name)¶
Bases:
PartsErrorUse of build-attributes that a plugin does not support.
- exception craft_parts.errors.UserExecutionError(*, brief, resolution, stderr=None)¶
Bases:
PartsError,ABCPlugin build script failed at runtime.
- Parameters:
- exception craft_parts.errors.XAttributeError(key, path, *, is_write=False)¶
Bases:
PartsErrorFailed to read or write an extended attribute.
- exception craft_parts.errors.XAttributeTooLong(key, value, path)¶
Bases:
PartsErrorFailed to write an extended attribute because key and/or value is too long.