From d8b06921b68a99c2be0dbcf67ae8be19c11087a8 Mon Sep 17 00:00:00 2001 From: bitfl0wer Date: Fri, 21 Apr 2023 18:20:49 +0200 Subject: [PATCH] add error --- src/errors.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/errors.rs b/src/errors.rs index 28b983f..438cd1d 100644 --- a/src/errors.rs +++ b/src/errors.rs @@ -15,3 +15,9 @@ custom_error! { ConsentError = "Consent must be 'true' to register.", EmailError = "The provided email address is in an invalid format." } + +custom_error! { + #[derive(PartialEq, Eq)] + pub InstanceServerError + NoResponse = "Did not receive a response from the Server." +}