Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

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

Aperta
#413 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
cpp, python
Ambito
backend

Direzione di ricerca

Start in src/bindings/PyDP/pydp_lib/algorithm_builder.hpp at the linked handling of absl::StatusOr results. Trace the error codes returned by the DP Library and the Python exception path, then define the distinct exception behavior requested for invalid argument, unimplemented, failed precondition, and internal errors. Done means each listed error type raises a corresponding Python exception.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Type: Improvement :chart_with_upwards_trend:

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.

Lingua principale
Python
Stelle
550
Fork
143
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di OpenMined/PyDP

Tutte le issue di OpenMined/PyDP

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.