← Back to issue list

craft_parts: export PartsError in base package (CRAFT-456)

View original Github issue

Metadata

Project
craft-parts
Number
#107
Type
pull request
State
merged
Author
cjp256
Labels
Created
Updated
Closed

Current evaluation

Merged after two approvals and passing CI. Exports PartsError from the craft_parts base package via a single-line change, enabling applications to catch the exception directly without internal module references.

Suggested action:

No scores available.

Issue body

Once applications want to catch this exception, it should probably be exposed from the package rather than require reference to the module. Signed-off-by: Chris Patterson <chris.patterson@canonical.com> - [x] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)? -----

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b Merged after two approvals and passing CI. Exports PartsError from the craft_parts base package via a single-line change, enabling applications to catch the exception directly without internal module references.
qwen3.6-35b-a3b-mtp-q6 Merged PR exports PartsError from the craft_parts base package, allowing applications to catch the exception directly without importing internal modules. Resolves CRAFT-456.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#176 parts: fix conversion of PartsError rockcraft merged Merged fix for PartsError conversion that previously used string representation to populate PartsLifecycleError messages, bypassing craft_cli verbosity controls. Fixes error handling to properly respect verbosity levels.
73%
#3843 parts: Do not import craft_parts.packages.deb until needed snapcraft merged Merged to defer importing craft_parts.packages.deb until needed, resolving failures on non-deb systems. Approved by reviewers, passed CI checks, and integrated into main.
72%
#3636 parts: integrate craft-parts (CRAFT-765) snapcraft merged Merged after reviewer approval and passing CI checks. Integrates craft-parts for part validation and lifecycle processing. Modifies 12 files, adding 369 lines and removing 20, fulfilling CRAFT-765.
71%
#294 docs: import Craft Parts documentation fragments rockcraft merged Merged after two reviewers approved and requested rebasing to sync with main. The change imports Craft Parts documentation fragments. CI passed, and preview confirms successful integration pending a Craft Parts release.
71%