Skip to content

Latest commit

 

History

History
36 lines (26 loc) · 1.43 KB

Readme.md

File metadata and controls

36 lines (26 loc) · 1.43 KB

Module :: error_tools

experimental rust-status docs.rs Open in Gitpod discord

Basic exceptions handling mechanism.

Sample

#[ cfg( feature = "use_std" ) ]
{
  use error_tools::*;

  let err1 = BasicError::new( "Some error" );
  println!( "err1 : {}", err1 );
  // < err1 : Some error
}

To add to your project

cargo add error_tools

Try out from the repository

git clone https://github.com/Wandalen/wTools
cd wTools
cd sample/rust/error_tools_trivial
cargo run