4 ms·
Yeah it's very rare to catch exception within processes, or to raise them explicitly. It's common to write something like {ok, Result} = foo() though, and
by masklinn 8y ago
Yeah it's very rare to catch exception within processes, or to raise them explicitly. It's common to write something like
{ok, Result} = foo()
though, and that raises badmatch if it fails, and you handle it in a supervisor.