Skip to content

Raise different errors based on the error code returned from the DP Library #413

Description

@dibakch

Description

In the builder of algorithms or numerical mechanisms, the DP Library returns different error types, i.e., invalid argument, unimplemented, failed precondition, or internal errors. Based on those types, we should raise different exceptions in Python, too.

Are you interested in working on this improvement yourself?

  • No, I am not at the moment.

Additional Context

We would basically need to add a case statement based on the error code of the absl::StatusOr in the bindings.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: Improvement 📈Performance improvement not introducing a new feature or requiring a major refactor

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions