IQSS / IQSS/dataverse-client-javascript
Create the NotFoundError
Nessuno ha ancora preso questa issue.
- Lingua principale
- TypeScript
- Stelle
- 20
- Fork
- 11
- Merge medio
- 2g 5h
- PR unite (30g)
- 1
Descrizione
Overview of the Feature Request
For now any error returned by the API in a read operation returns a ReadError, which includes the message with the HTTP error code as a very simple string, but we can define a new NotFoundError that extends ReadError also including more refined data. This way we can safely identify a not found error within the block catch of the promise, and carry out the necessary actions in the SPA.
What Inspired the Request?
What Existing Behavior Do You Want Changed?
Error handling
Any Brand New Behavior Do You Want to Add to js-dataverse?
New not found error
Any Open or Closed Issues Related to This Feature Request?
No
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia tracciando l’implementazione esistente di ReadError e la gestione degli errori delle operazioni di lettura in js-dataverse. Determina dove le risposte API di tipo non trovato vengono convertite in errori e quali dati raffinati sono disponibili in quel punto. Il lavoro è completo quando è possibile identificare un NotFoundError distinto in un catch di una promise mantenendo al contempo il comportamento esistente di ReadError.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- typescript
- Ambito
- api
- Tipo di issue
- Funzionalità
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100