Add error module, result module

This commit is contained in:
Matthias Beyer 2016-08-09 12:32:26 +02:00
parent 8fd52d0ef1
commit 96a22a0d47
3 changed files with 18 additions and 0 deletions

View file

@ -0,0 +1,10 @@
generate_error_module!(
generate_error_types!(EditError, EditErrorKind,
IOError => "IO Error"
);
);
pub use self::error::EditError;
pub use self::error::EditErrorKind;
pub use self::error::MapErrInto;

View file

@ -4,3 +4,5 @@ extern crate libimagrt;
extern crate tempfile;
pub mod edit;
pub mod error;
pub mod result;

View file

@ -0,0 +1,6 @@
use std::result::Result as RResult;
use error::EditError;
pub type Result<T> = RResult<T, EditError>;