From ddebbc0b7f45eaf07a2242fd91f1a92ee27099a9 Mon Sep 17 00:00:00 2001 From: Katharina Fey Date: Thu, 6 Sep 2018 20:28:04 +0200 Subject: Changing the vault trait to use Result<_, VaultError> more liberally --- lockchain-core/src/errors/vault.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lockchain-core/src/errors') 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 -- cgit v1.2.3