[erlang-questions] Unexpected try/catch behaviour
Attila Rajmund Nohl
attila.r.nohl@REDACTED
Tue Feb 23 12:36:05 CET 2010
2010/2/23, Ulf Wiger <ulf.wiger@REDACTED>:
[...]
> From the Erlang Reference Manual:
>
> "try Exprs of
> Pattern1 [when GuardSeq1] ->
> Body1;
> ...;
> PatternN [when GuardSeqN] ->
> BodyN
> catch
> [Class1:]ExceptionPattern1 [when ExceptionGuardSeq1] ->
> ExceptionBody1;
> ...;
> [ClassN:]ExceptionPatternN [when ExceptionGuardSeqN] ->
> ExceptionBodyN
> end
> ...
>
> An exception occurring during the evaluation of Body is not caught."
This is um, surprising, even by the standards of Erlang... I mean not
the documentation, but the actual language construct.
More information about the erlang-questions
mailing list