Elegant detailed Python exceptions.
Project description
errr
Elegantly create detailed exceptions in Python.
>>> import errr
>>> class MyException(errr.DetailedException, details=["cause", "type"]):
... pass
...
>>> raise MyException("The backend server crashed", "backend", "crash")
__main__.MyException: The backend server crashed
Details:
˪cause: backend
˪type: crash
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
errr-0.1.0-py3-none-any.whl
(3.7 kB
view hashes)