[erlang-questions] Old school exceptions vs. new age one
Maxim Treskin
zerthurd@REDACTED
Mon Apr 28 15:11:42 CEST 2008
> Your try-catch code is not actually catching the exception.
> ... skipped...
>
Yes, I know. It is just short example of code
> When you have caught the exception, you can call erlang:get_stacktrace()
> to look at the stack trace if you want to.
>
> New-style syntax is better because the old-style made different kinds
> of exception look the same, so you could not separate them. (And it also
> had other problems; it could not catch only some exceptions and re-throw
> all the others, etc.)
>
Thank you for this explanation, Richard
--
Maxim Treskin
More information about the erlang-questions
mailing list