diff options
| author | Matthieu <matthieu@developershouse.xyz> | 2021-09-09 22:16:39 +0400 |
|---|---|---|
| committer | Matthieu <matthieu@developershouse.xyz> | 2021-09-09 22:16:39 +0400 |
| commit | 11912b050a97c258a8a38552d855f183c339beee (patch) | |
| tree | d80f960beb4e0455cd8d0d8addb7b3308dda6933 /gateway/src/client/error.rs | |
| parent | e28d134370196d3e4d3ff9016a36cce011031e58 (diff) | |
gateway improvements, common packages and examples
Diffstat (limited to 'gateway/src/client/error.rs')
| -rw-r--r-- | gateway/src/client/error.rs | 20 |
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 |
