summary refs log tree commit diff
path: root/src/error.rs
diff options
context:
space:
mode:
authorIrene Knapp <ireneista@internetsafetylabs.org>2025-10-10 00:55:51 -0700
committerIrene Knapp <ireneista@internetsafetylabs.org>2025-11-26 14:47:27 -0800
commit01b7b60dc260aa7cf1dab6c15db13a88d5d92ada (patch)
tree7cb838c4b6c941e6d67e7265438600d2bbcd15cd /src/error.rs
parenta0061153aca2bb13b167efd6263a6fa83150e160 (diff)
basic structure of the interactive features of the CLI tool
Change-Id: Ifec5dbbe20b2c625d448eba436620622af6c5120
Diffstat (limited to 'src/error.rs')
-rw-r--r--src/error.rs17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/error.rs b/src/error.rs
new file mode 100644
index 0000000..86e7928
--- /dev/null
+++ b/src/error.rs
@@ -0,0 +1,17 @@
+#![forbid(unsafe_code)]
+
+
+pub type Result<T> = std::result::Result<T, Error>;
+
+#[derive(Debug)]
+pub enum Error {
+  IO(std::io::Error),
+  Internal(String),
+}
+
+impl From<std::io::Error> for Error {
+  fn from(value: std::io::Error) -> Self {
+    Error::IO(value)
+  }
+}
+