Module errors

Source
Expand description

Utilities to generate error reports about the external dependencies.

Macros§

error_assert
Custom assert to either panic or return an error
raise_error
Macro to either panic or return on error, depending on the CLI options
register_error
sanity_check
Custom assert to report an error and optionally panic

Structs§

DepGraph 🔒
Graph of dependencies between erroring definitions and the definitions they came from.
DepSource
We use this to save the origin of an id. This is useful for the external dependencies, especially if some external dependencies don’t extract: we use this information to tell the user what is the code which (transitively) lead to the extraction of those problematic dependencies.
Error
Common error used during the translation.
ErrorCtx
The context for tracking and reporting errors.
Level
[Message] or [Title] severity level

Enums§

DepNode 🔒
For tracing error dependencies.