blob: b8e98fd8ecb94768a743e56f1b85f838e35e3f63 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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),
}
|