aboutsummaryrefslogtreecommitdiff
path: root/lockchain-core/src/errors.rs
diff options
context:
space:
mode:
Diffstat (limited to 'lockchain-core/src/errors.rs')
-rw-r--r--lockchain-core/src/errors.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/lockchain-core/src/errors.rs b/lockchain-core/src/errors.rs
index 6a5b632..4720031 100644
--- a/lockchain-core/src/errors.rs
+++ b/lockchain-core/src/errors.rs
@@ -10,11 +10,17 @@
use std::error;
use std::fmt::{Display, Formatter, Result};
+// use serde::{Serialize, de::DeserializeOwned};
/// A collection of common error codes that can be
/// returned by lockchain API functions
#[derive(Debug, Serialize, Deserialize)]
pub enum Error {
+ /// Provide an extended range for errors
+ Extended {
+ name: String,
+ into: (),
+ },
/// Creating a vault where one already exists
VaultAlreadyExists,
/// When providing an invalid path