libmwemu 0.24.1

x86 32/64bits and system internals emulator, for securely emulating malware and other stuff.
Documentation
use std::error::Error;

#[derive(Debug)]
pub struct MwemuError {
    pub message: String,
}

impl MwemuError {
    pub fn new(message: &str) -> MwemuError {
        MwemuError {
            message: message.to_string(),
        }
    }
}

impl std::fmt::Display for MwemuError {
    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
        write!(f, "MWEMU Error: {}", self.message)
    }
}

impl Error for MwemuError {}