diff options
author | Florian Klink <flokli@flokli.de> | 2023-02-12T10·39+0100 |
---|---|---|
committer | flokli <flokli@flokli.de> | 2023-03-06T15·32+0000 |
commit | 786854713c3d5d80cd8ededc857151ac65b54dbd (patch) | |
tree | 940706b4d184e91b9725861bab1b3010bfe2a841 /tvix/store/src/errors.rs | |
parent | 6019c75deb7868f43b9ad8449fe2d00532b07a54 (diff) |
feat(tvix/store): add errors r/5891
Change-Id: I7be0a4eaa29840e1a3329bccb791975de22828ef Reviewed-on: https://cl.tvl.fyi/c/depot/+/8085 Reviewed-by: tazjin <tazjin@tvl.su> Tested-by: BuildkiteCI
Diffstat (limited to 'tvix/store/src/errors.rs')
-rw-r--r-- | tvix/store/src/errors.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tvix/store/src/errors.rs b/tvix/store/src/errors.rs new file mode 100644 index 000000000000..003c619b7213 --- /dev/null +++ b/tvix/store/src/errors.rs @@ -0,0 +1,11 @@ +use thiserror::Error; + +/// Errors related to communication with the store. +#[derive(Debug, Error)] +pub enum Error { + #[error("invalid request: {0}")] + InvalidRequest(String), + + #[error("internal storage error: {0}")] + StorageError(String), +} |