[erlang-questions] wanted: example of try/catch

Dominic Williams xpdoka@REDACTED
Fri Dec 8 16:06:15 CET 2006


Hi Bengt,

> try false = true catch Error -> kalle end.
>
> it does not. i get:
> ** exited: {{badmatch,true},[{erl_eval,expr,3}]} **

try false = true catch Class:Error -> kalle end.

Cheers,

Dominic Williams
http://www.dominicwilliams.net

----



More information about the erlang-questions mailing list