Bug 10476

Summary: Unify exception handling in core/classes
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Joshua Lock <joshuagloe>
Component: coreAssignee: Unassigned <unassigned>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: Medium CC: meta.mr.watcher, meta.watcher, randy.macleod
Version: 2.2   
Target Milestone: 6.99   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: Don't know

Description Joshua Lock 2016-10-21 10:09:03 UTC
A recent series starting with[1] overhauled use of FuncFailed exceptions, which are intended to be caught when calling exec_func/exec_task.

This highlighted incorrect usage of FuncFailed puts other Exception handling in OE-Core under question, particularly the use of NotImplementedError in sanity.bbclass.

We should look to design & document & implement throughout OE-Core some best practices for patterns in metadata which throw exceptions including:
- useradd-staticids.bbclass
- image.bbclass
- sanity.bbclass

1. http://git.openembedded.org/openembedded-core/commit/?id=9635af9785509a39c1ac2509740d46276119a0ca
Comment 1 Randy MacLeod 2023-10-24 14:24:18 UTC
Bulk move from 4.99 or 0.00 to 5.99