3 The simplest error handling mechanism we will see is `panic`. It prints an
4 error message, starts unwinding the stack, and usually exits the program.
5 Here, we explicitly call `panic` on our error condition:
7 ```rust,editable,ignore,mdbook-runnable
8 fn drink(beverage: &str) {
9 // You shouldn't drink too much sugary beverages.
10 if beverage == "lemonade" { panic!("AAAaaaaa!!!!"); }
12 println!("Some refreshing {} is all I need.", beverage);