cgohlke / molmass

Molecular mass calculations
https://pypi.org/project/molmass
BSD 3-Clause "New" or "Revised" License
56 stars 13 forks source link

Improve exceptions #1

Closed fkromer closed 3 years ago

fkromer commented 4 years ago

We should add docs about when which exceptions are raised. ATM there is only one exception FormulaError. It is raised in case of:

We could improve the docs. From a lib client perspective it would be valuable to categorize or even define specific exceptions to improve error handling capabilities.