Skip to content

Custom error classes with error_if #1185

@f0uriest

Description

@f0uriest

Right now error_if always raises an EquinoxRuntimeError. Is it possible to have this be user controlled, so it could be eg ValueError or some custom user error type? I saw #762 the warning category can be specified, but I know the runtime error stuff is tricky so not sure if there's a hard reason error_if couldn't be modified to allow this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions