Exception handling

use rand::RngExt;

let mut rng = rand::rng();
let n = rng.random_range(-3..3); 
let classify = if n > 0
"positive" } else { panic!("negative!") }; //<- Error
//classify is "negative"

println!("classify is '{classify}'");