mirror of
https://github.com/JockeTF/fimfareader.git
synced 2024-11-27 15:38:00 +01:00
Add error module for abstraction
This commit is contained in:
parent
6e01dbea9f
commit
6e3218f2e4
2 changed files with 10 additions and 0 deletions
9
src/error.rs
Normal file
9
src/error.rs
Normal 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>;
|
|
@ -1,5 +1,6 @@
|
||||||
//! Main module.
|
//! Main module.
|
||||||
|
|
||||||
|
pub mod error;
|
||||||
pub mod story;
|
pub mod story;
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
|
|
Loading…
Reference in a new issue