aboutsummaryrefslogtreecommitdiff
path: root/src/util/error.rs
diff options
context:
space:
mode:
authorTrinity Pointard <trinity.pointard@gmail.com>2021-03-20 20:38:44 +0100
committerAlex Auvolat <alex@adnab.me>2021-04-27 16:37:10 +0200
commitf9bd2d8fb79a8f3dbea54834b39e65438846ea5c (patch)
tree1d8e8bc66f80e29205893dc35187c0980f46f822 /src/util/error.rs
parentbf36f1f16aae763feae7bc7365741d8406f053cb (diff)
downloadgarage-f9bd2d8fb79a8f3dbea54834b39e65438846ea5c.tar.gz
garage-f9bd2d8fb79a8f3dbea54834b39e65438846ea5c.zip
document util crate
Diffstat (limited to 'src/util/error.rs')
-rw-r--r--src/util/error.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/util/error.rs b/src/util/error.rs
index a9bf0824..13cbeba3 100644
--- a/src/util/error.rs
+++ b/src/util/error.rs
@@ -1,9 +1,12 @@
+//! Module containing error types used in Garage
+#![allow(missing_docs)]
use err_derive::Error;
use hyper::StatusCode;
use std::io;
use crate::data::*;
+/// RPC related errors
#[derive(Debug, Error)]
pub enum RPCError {
#[error(display = "Node is down: {:?}.", _0)]
@@ -28,6 +31,7 @@ pub enum RPCError {
TooManyErrors(Vec<String>),
}
+/// Regroup all Garage errors
#[derive(Debug, Error)]
pub enum Error {
#[error(display = "IO error: {}", _0)]