Skip to main content

exec_pe_core/
error.rs

1//! Error types for pe-core.
2
3/// Errors returned by [`crate::parse_pe`].
4#[derive(Debug, thiserror::Error)]
5pub enum PeError {
6    #[error("not a PE file: missing or invalid MZ/PE signature")]
7    NotPe,
8    #[error("PE structure error: {0}")]
9    Structure(String),
10    #[error("I/O error: {0}")]
11    Io(#[from] std::io::Error),
12}