Add error module for abstraction

This commit is contained in:
Joakim Soderlund 2019-07-21 14:45:48 +00:00
parent 6e01dbea9f
commit 6e3218f2e4
2 changed files with 10 additions and 0 deletions

9
src/error.rs Normal file
View file

@ -0,0 +1,9 @@
//! Error types.
#[derive(Debug)]
pub enum Error {
InvalidStory(),
SourceError(&'static str),
}
pub type Result<T> = std::result::Result<T, Error>;

View file

@ -1,5 +1,6 @@
//! Main module.
pub mod error;
pub mod story;
fn main() {