blob: b8f5814004ec993e6c4f3d720a8c89e1e47bba2e (
plain) (
tree)
|
|
-module(lib_lines).
-export([do_error/0, do_exit/0, do_hang/0, do_throw/0]).
-include("ct.hrl").
do_error() ->
io:format("Here comes an error...~n"),
[] = lists:seq(1,2),
ok.
do_exit() ->
io:format("Here comes an exit...~n"),
exit(byebye),
ok.
do_hang() ->
io:format("Here comes a hang...~n"),
receive after infinity -> ok end,
ok.
do_throw() ->
io:format("Here comes a throw...~n"),
throw(catch_me_if_u_can),
ok.
|