SPF-OST / pytrnsys_gui

Graphical user interface for pytrnsys
https://pytrnsys.readthedocs.io
GNU General Public License v3.0
3 stars 4 forks source link

Turn exceptions into nice error messages in a unified way #393

Open zuckerruebe opened 1 year ago

zuckerruebe commented 1 year ago

As a developer I want to unify the way we turn exceptions into error messages to be shown to the user.

Currently, we tend to just do str(e). For some exceptions it's not that easy. E.g., for OSErrors it's better to do e.strerror otherwise we get an ugly [Error 7] (or something to that effect) prefix.

It would pay off investing the time once to find a unified and principled approach to turn all standard library exceptions into nice error messages (maybe there's already a library for that?).