JavaScript is disabled, refresh for a better experience. ambee/giterated

ambee/giterated

Git repository hosting, collaboration, and discovery for the Fediverse.

Error handling refactor

This refactor aims to improve error handling throughout the project by refining the overarching error types and increasing usage of proper error handling. Replaced existing networked operation error with `NetworkOperationError`. `NetworkOperationError` does not forward any internal error details, which allows `OperationError` to grow into a better error type. `OperationError` now has support for storing real typed errors inside of it for better debugging. `IntoInternalError` is a trait which allows for easy conversion of error types into `OperationError::internal`.

Amber - ⁨2⁩ years ago

parent: tbd commit: ⁨e02c03d

⁨giterated-stack/Cargo.toml⁩ - ⁨464⁩ bytes
Raw
1 [package]
2 name = "giterated-stack"
3 version = "0.1.0"
4 edition = "2021"
5
6 # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
7
8 [dependencies]
9 giterated-models = { path = "../giterated-models" }
10 async-trait = "0.1"
11 serde = { version = "1.0.188", features = [ "derive" ]}
12 serde_json = "1.0"
13 bincode = "1.3"
14 futures-util = "0.3"
15 tracing = "0.1"
16 tokio = { version = "1.32", features = [ "full" ] }
17 anyhow = "1"
18 thiserror = "1"