aboutsummaryrefslogtreecommitdiff
path: root/lockchain-core/src/errors
diff options
context:
space:
mode:
authorKatharina Fey <kookie@spacekookie.de>2018-09-06 20:28:04 +0200
committerKatharina Fey <kookie@spacekookie.de>2018-09-06 20:28:04 +0200
commitddebbc0b7f45eaf07a2242fd91f1a92ee27099a9 (patch)
tree6ce7b1313f4e94f43c02102546b5f2440aed87de /lockchain-core/src/errors
parentf3824b79256133374aacd910f34ed2764640b1b7 (diff)
Changing the vault trait to use Result<_, VaultError> more liberally
Diffstat (limited to 'lockchain-core/src/errors')
-rw-r--r--lockchain-core/src/errors/vault.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/lockchain-core/src/errors/vault.rs b/lockchain-core/src/errors/vault.rs
index bcfcd13..37d8662 100644
--- a/lockchain-core/src/errors/vault.rs
+++ b/lockchain-core/src/errors/vault.rs
@@ -5,6 +5,10 @@ use std::fmt::{Display, Formatter, Result};
#[derive(Debug, Serialize, Deserialize)]
pub enum Error {
+ /// Indicates that **mandatory** fields in the
+ /// vault generator haven't been set – vault
+ /// constructor was never called.
+ IncompleteGenerator,
/// A vault already exists with that path-id
AlreadyExists,
/// The provided path is invalid