3
-export([do_error/0, do_exit/0, do_hang/0, do_throw/0]).
6
io:format("Here comes a badmatch error...~n"),
11
io:format("Here comes a byebye exit...~n"),
16
io:format("Here comes a hang...~n"),
17
receive after infinity -> ok end,
21
io:format("Here comes a throw...~n"),
22
throw(catch_me_if_u_can),