aboutsummaryrefslogtreecommitdiff
path: root/lockchain-core/src
diff options
context:
space:
mode:
authorKatharina Fey <kookie@spacekookie.de>2018-06-07 02:37:23 +0200
committerKatharina Fey <kookie@spacekookie.de>2018-06-07 02:37:23 +0200
commit772f6489ded31e929ac4b09c0be71a467c089680 (patch)
treeb77c781692927329af93e0fb119d3217b0a1ea04 /lockchain-core/src
parent1f63146d9238dda456f6b3ff8c37cc26f765d4a1 (diff)
A bunch of code changes
Diffstat (limited to 'lockchain-core/src')
-rw-r--r--lockchain-core/src/errors.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/lockchain-core/src/errors.rs b/lockchain-core/src/errors.rs
index c8668e5..18f23f3 100644
--- a/lockchain-core/src/errors.rs
+++ b/lockchain-core/src/errors.rs
@@ -1,16 +1,16 @@
//! Common lockchain error handling
-//!
+//!
//! When working with a lockchain vault or record set
//! there are a lot of things that can go wrong.
-//!
+//!
//! This module handles any generic failure condition
//! and logic to escallate from one to the next, e.g.
-//! turning a `VaultAlreadyExists` failure to
+//! turning a `VaultAlreadyExists` failure to
//! a `FailedInitialise`.
-
/// A collection of common error codes that can be
/// returned by lockchain API functions
+#[derive(Serialize, Deserialize)]
pub enum Error {
/// Creating a vault where one already exists
VaultAlreadyExists,
@@ -34,4 +34,4 @@ pub enum Error {
UnknownFailure,
// #[hidden_docs]
__NonExhaustive,
-} \ No newline at end of file
+}