-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Let OutcomeException
inherit from Exception
instead of BaseException
#12235
Comments
-10 on this its a most users easily do so by accident thus breaking the intended function |
Hi @RonnyPfannschmidt , thank you for your answer. If I understand correctly, usage has shown that people catch exceptions in their tests using the bare In any case, could the docstring of the |
Added a clarifying note would be great |
What's the problem this feature will solve?
This allows for the usual handling and follows the Python documentation.
Describe the solution you'd like
Replace inheritance of
OutcomeException
fromBaseException
withException
Alternative Solutions
I can rewrite the code to expect a
BaseException
, but it does not follow Pythons recommend practice of inheriting user defined exceptions fromException
Additional context
I'm curious to learn what the motivation is for inheriting from
BaseException
instead ofException
.The text was updated successfully, but these errors were encountered: