@tiran Has an idea to wrap our hooks to have more detailed exceptions as well as separate exception classes for resolver, sdist, wheel build, and so on. Please take a look at the rough prototype https://github.com/tiran/fromager/pull/new/hook-exceptiongroup .
We discussed this as part the PR review of #846 (comment)