[Crate] Separate error code into different files.

This commit is contained in:
CosminPerRam 2023-09-10 23:12:18 +03:00
parent edbb0e6cf5
commit 995ab23b51
4 changed files with 115 additions and 90 deletions

12
src/errors/mod.rs Normal file
View file

@ -0,0 +1,12 @@
//! Every GameDig errors.
/// The Error with backtrace.
pub mod error;
/// All defined Error kinds.
pub mod kind;
/// `GDResult`, a shorthand of `Result<T, GDError>`.
pub mod result;
pub use error::*;
pub use kind::*;
pub use result::*;