| use std::string::FromUtf8Error; | |
| use thiserror::Error; | |
| /// Error type for file operations | |
| pub enum Error { | |
| BinaryFileNotSupported(String), | |
| StartBeyondFileSize { start: u64, total: u64 }, | |
| IndexStartingWithZero { start: u64, end: u64 }, | |
| StartGreaterThanEnd { start: u64, end: u64 }, | |
| Utf8ValidationFailed( FromUtf8Error), | |
| IoError( std::io::Error), | |
| } | |