RosettaCodeData/Task/Exceptions/Erlang/exceptions.erl
Ingy döt Net 776bba907c Sync
2013-10-27 22:24:23 +00: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.