parsec-cloud
parsec-cloud copied to clipboard
Convert `&str` error to proper enum value.
Currently in the rust code we could find Result that return &str.
We don't want that because:
- It makes comparing errors harder.
- Rewording the error is hard, you have to find & change the message in the code at multiple location.
Instead, what we want is an enum of the possible errors for that type of problems
We must be cautious and don't put every possible errors in the same
enum. e.g:Deserializationerrors shouldn't be put in the same enum that theHTTPerrors