summaryrefslogtreecommitdiff
path: root/systems/sheet/src/index_source/error.rs
diff options
context:
space:
mode:
Diffstat (limited to 'systems/sheet/src/index_source/error.rs')
-rw-r--r--systems/sheet/src/index_source/error.rs19
1 files changed, 19 insertions, 0 deletions
diff --git a/systems/sheet/src/index_source/error.rs b/systems/sheet/src/index_source/error.rs
new file mode 100644
index 0000000..b8e98fd
--- /dev/null
+++ b/systems/sheet/src/index_source/error.rs
@@ -0,0 +1,19 @@
+use thiserror::Error;
+
+#[derive(Error, Debug)]
+pub enum IDAliasError {
+ #[error("IO error: {0}")]
+ Io(#[from] std::io::Error),
+
+ #[error("Invalid alias file: {0}")]
+ InvalidAliasFile(String),
+
+ #[error("Alias not found for ID: {0}")]
+ AliasNotFound(u32),
+
+ #[error("Invalid file offset: {0}")]
+ InvalidOffset(u64),
+
+ #[error("File size mismatch: expected {0}, got {1}")]
+ FileSizeMismatch(u64, u64),
+}