summaryrefslogtreecommitdiff
path: root/systems/sheet/src/index_source/error.rs
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-03-15 18:19:59 +0800
committer魏曹先生 <1992414357@qq.com>2026-03-15 18:19:59 +0800
commitcc9bf0e13d75b9938b67da5df8135369374dc36d (patch)
tree37cb07d05ddfdfe7333de59e41d08c83351c92e3 /systems/sheet/src/index_source/error.rs
parentd942ec50ff68f36c2641becdd6f32a95ab3f4325 (diff)
Add ID mapping system for local/remote index source conversion
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),
+}