Right now we're raising a RuntimeError with a string message, but if you're creating tooling then it would be nice to have e.g. a list of objects of different types (one for each kind of problem) describing the problems. We could then have a custom exception class that stringifies to the current message but also contains the structured information.
Right now we're raising a RuntimeError with a string message, but if you're creating tooling then it would be nice to have e.g. a list of objects of different types (one for each kind of problem) describing the problems. We could then have a custom exception class that stringifies to the current message but also contains the structured information.