summaryrefslogtreecommitdiff
path: root/gateway/src/error.rs
diff options
context:
space:
mode:
Diffstat (limited to 'gateway/src/error.rs')
-rw-r--r--gateway/src/error.rs22
1 files changed, 0 insertions, 22 deletions
diff --git a/gateway/src/error.rs b/gateway/src/error.rs
deleted file mode 100644
index eb3a245..0000000
--- a/gateway/src/error.rs
+++ /dev/null
@@ -1,22 +0,0 @@
-use common::error::NovaError;
-
-#[derive(Debug)]
-pub struct GatewayError(NovaError);
-
-impl From<tokio_tungstenite::tungstenite::Error> for GatewayError {
- fn from(e: tokio_tungstenite::tungstenite::Error) -> Self {
- GatewayError {
- 0: NovaError {
- message: e.to_string(),
- },
- }
- }
-}
-
-impl From<String> for GatewayError {
- fn from(e: String) -> Self {
- GatewayError {
- 0: NovaError { message: e },
- }
- }
-}