handle-this 0.2.4

Ergonomic error handling with try/catch/throw/inspect/finally syntax and automatic stack traces
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
//! Error: multiple finally blocks

use handle_this::handle;

fn main() {
    let _ = handle! {
        try { Err::<i32, &str>("error")? }
        finally { println!("first"); }
        finally { println!("second"); }
        catch { 0 }
    };
}