Reference¶
BuildExceptions
¶
A class to manage and handle build exceptions.
Info
This class collects exceptions during the build process, stores them in a dictionary indexed by a unique identifier (PUIC), and provides a method to handle all collected exceptions.
Attributes:
Name | Type | Description |
---|---|---|
exceptions |
DefaultDict[str, List[ImxException]]
|
A dictionary to store lists of exceptions indexed by PUIC. |
add(exception, puic)
¶
Adds an exception to the collection.
Info
This method checks if an exception with the same message already exists for the given PUIC. If not, it adds the exception to the list for that PUIC.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
exception |
ImxException
|
The exception to be added. |
required |
puic |
str
|
The unique identifier associated with the exception. |
required |
handle_all()
¶
Handles all collected exceptions.
Info
This method iterates over all exceptions stored in the dictionary and processes them
using the exception_handler
.