RosettaCodeData/Task/Exceptions/Erlang/exceptions.erl
2023-07-01 13:44:08 -04:00

12 lines
179 B
Erlang

-module( exceptions ).
-export( [task/0] ).
task() ->
try
erlang:throw( new_exception )
catch
_:Exception -> io:fwrite( "Catched ~p~n", [Exception] )
end.