summaryrefslogtreecommitdiff
path: root/gateway/src/client/error.rs
diff options
context:
space:
mode:
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