solana_program_profiler/
error.rs

1use thiserror::Error;
2
3#[derive(Error, Debug)]
4pub enum ProfilerError {
5    #[error("File not found: {0}")]
6    FileNotFound(String),
7    #[error("IO error on file {0}: {1}")]
8    IoError(String, std::io::Error),
9    #[error("ELF parsing error: {0}")]
10    ElfError(String),
11    #[error("Analysis error: {0}")]
12    AnalysisError(String),
13}