use thiserror::Error;

#[derive(Error, Debug)]
pub enum ElfParserError<I> {
    /// the parser failed to parse.
    /// this variant holds the detailed error.
    #[error("failed to parse; reason: {0}")]
    FailedToParse(#[from] nom::Err<nom::error::Error<I>>),
    /// the parser doesn't support the feature yet.
    /// this variant holds the detailed message.
    #[error("unsupported behavior; reason: {0}")]
    Unsupported(String),
}
