Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add exceptions to API #72

Open
1kastner opened this issue Jan 30, 2022 · 0 comments
Open

Add exceptions to API #72

1kastner opened this issue Jan 30, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@1kastner
Copy link
Owner

1kastner commented Jan 30, 2022

Currently, exceptions are cluttered all over the code and they are not an official part of the API. If people use the API, they should be able to invoke the methods in a try/except manner and thus the exceptions should be available to them. To achieve this, first of all exceptions need to be consolidated.

The major source for exceptions are invalid input parameters. The most complex data type currently handled are distributions that are represented as dictionairies with additional constraints to be checked. Thus, this task depends on #71 and #65.

@1kastner 1kastner added the enhancement New feature or request label Jan 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant