Hoverbear / old-raft-rs

[Incomplete] A Raft implementation in Rust
https://hoverbear.github.io/raft-rs/raft/
MIT License
266 stars 41 forks source link

Create `RaftError` #21

Closed Hoverbear closed 9 years ago

Hoverbear commented 9 years ago

You can only return one type of error, however Raft frequently deals with io::Result and capnp::Result, as well as having some of it's own error states not related. In order to effectively pass up errors, we need to have our own error type.

This will require building some error infrastructure. Probably implementing FromError for the created enum.

Hoverbear commented 9 years ago

I implemented this in Raft however it could probably be extended and used in RaftNode and others.

danburkert commented 9 years ago

This is pretty much complete.