summaryrefslogtreecommitdiff
path: root/gateway/src/client/error.rs
diff options
context:
space:
mode:
authorMatthieu <matthieu@developershouse.xyz>2021-09-09 22:16:39 +0400
committerMatthieu <matthieu@developershouse.xyz>2021-09-09 22:16:39 +0400
commit11912b050a97c258a8a38552d855f183c339beee (patch)
treed80f960beb4e0455cd8d0d8addb7b3308dda6933 /gateway/src/client/error.rs
parente28d134370196d3e4d3ff9016a36cce011031e58 (diff)
gateway improvements, common packages and examples
Diffstat (limited to 'gateway/src/client/error.rs')
-rw-r--r--gateway/src/client/error.rs20
1 files changed, 0 insertions, 20 deletions
diff --git a/gateway/src/client/error.rs b/gateway/src/client/error.rs
deleted file mode 100644
index bac6894..0000000
--- a/gateway/src/client/error.rs
+++ /dev/null
@@ -1,20 +0,0 @@
-#[derive(Debug)]
-struct MyError(String);
-
-impl fmt::Display for MyError {
- fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
- write!(f, "There is an error: {}", self.0)
- }
-}
-
-impl Error for NovaError {}
-
-pub fn run() -> Result<(), Box<dyn Error>> {
- let condition = true;
-
- if condition {
- return Err(Box::new(MyError("Oops".into())));
- }
-
- Ok(())
-} \ No newline at end of file