CodeChain-io / CodeChain-io/remote-trait-object
Make errors handleable
- Lingua principale
- Rust
- Stelle
- 13
- Fork
- 5
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
Most of errors that caused by unexpected behavior of the other side's RTO port will just lead to panic.
However, especially in Foundry context, the other port might have been implemented by 3rd party and could be unreliable.
In this kind of cases, user will just want to handle the error, not panic.
One trivial solution is adding a `Failed` state for the RTO context. The context will be on `Failed` state when it encounters unexpected protocol error, and will be stopped. Users can notice this, and can handle with theirs means.
One drawback of supporting such error handling is the interface of service object; it might be mandatory to all methods to have `Result<>` as return types.
Depends on #76
Depends on #83
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Direzione di ricerca
Inizia esaminando le issue dipendenti #76 e #83, quindi analizza l’interfaccia dell’oggetto service e il ciclo di vita del contesto RTO descritto in questa issue. Decidi come gli errori di protocollo imprevisti fanno transitare il contesto e come gli utenti osservano e gestiscono questo errore; il lavoro è completato quando l’interfaccia e il comportamento in caso di errore sono definiti e implementati senza panics.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- rust
- Ambito
- api, distributed-systems
- Tipo di issue
- Funzionalità
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 30/100