Expand description

Basic exceptions handling mechanism.

Module :: werror

experimental rust-status docs.rs discord

Basic exceptions handling mechanism.

Sample

use werror::*;

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

To add to your project

cargo add werror

Try out from the repository

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

Re-exports

pub use protected::*;

Modules

Dependencies.

Exposed namespace of the module.

Shared with parent namespace of the module

Prelude to use essentials: use my_module::prelude::*.

Protected namespace of the module.

Macros

Macro asserts that two expressions are identical to each other. Unlike std::assert_eq it is removed from a release build.

Macro asserts that two expressions are identical to each other. Unlike std::assert_eq it is removed from a release build. Alias of debug_assert_id.

Macro asserts that two expressions are not identical to each other. Unlike std::assert_eq it is removed from a release build.

Macro asserts that two expressions are not identical to each other. Unlike std::assert_eq it is removed from a release build.

Macro to generate error.