diff --git a/libimagentryedit/src/error.rs b/libimagentryedit/src/error.rs new file mode 100644 index 00000000..07087e56 --- /dev/null +++ b/libimagentryedit/src/error.rs @@ -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; + diff --git a/libimagentryedit/src/lib.rs b/libimagentryedit/src/lib.rs index 7819d8d8..62cff1e4 100644 --- a/libimagentryedit/src/lib.rs +++ b/libimagentryedit/src/lib.rs @@ -4,3 +4,5 @@ extern crate libimagrt; extern crate tempfile; pub mod edit; +pub mod error; +pub mod result; diff --git a/libimagentryedit/src/result.rs b/libimagentryedit/src/result.rs new file mode 100644 index 00000000..7e58f0fe --- /dev/null +++ b/libimagentryedit/src/result.rs @@ -0,0 +1,6 @@ +use std::result::Result as RResult; + +use error::EditError; + +pub type Result = RResult; +