Skip to content

Let OutcomeException inherit from Exception instead of BaseException #12235

@JCZuurmond

Description

@JCZuurmond

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 from BaseException with Exception

Alternative Solutions

I can rewrite the code to expect a BaseException, but it does not follow Pythons recommend practice of inheriting user defined exceptions from Exception

Additional context

I'm curious to learn what the motivation is for inheriting from BaseException instead of Exception.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: docsdocumentation improvement, missing or needing clarification

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions