generate_error_imports!(); use std::io::Error as IOError; generate_error_types!(RuntimeError, RuntimeErrorKind, Instantiate => "Could not instantiate", IOError => "IO Error", ProcessExitFailure => "Process exited with failure" ); impl From for RuntimeError { fn from(ioe: IOError) -> RuntimeError { RuntimeErrorKind::IOError.into_error_with_cause(Box::new(ioe)) } }