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

Create our own exception class #57

Closed
jwhhh opened this issue Sep 8, 2022 · 0 comments · Fixed by #62
Closed

Create our own exception class #57

jwhhh opened this issue Sep 8, 2022 · 0 comments · Fixed by #62
Assignees
Labels
cofi core New feature or refactoring for core api WIP Work in progress

Comments

@jwhhh
Copy link
Member

jwhhh commented Sep 8, 2022

class CofiError(Exception):
    """The base CoFI error."""

And sub-exception for cases where some attribute/function is not defined.

Potentiallly this helps us manage duplicate code between different methods in BaseProblem (and more).

@jwhhh jwhhh added cofi core New feature or refactoring for core api WIP Work in progress labels Sep 8, 2022
@jwhhh jwhhh self-assigned this Sep 12, 2022
@jwhhh jwhhh closed this as completed in #62 Sep 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cofi core New feature or refactoring for core api WIP Work in progress
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant