Why can not catch exception in gen_server init callback function?

钱晓明 kyleqian@REDACTED
Wed Mar 31 17:48:03 CEST 2010


Hi, Why can not catch exception in gen_server init callback function?

init([]) ->
    erlang:error(myerror),
    {ok, #state{}}.

Ex = (catch myserver:start_link()).

process is terminated by exception myerror, but Ex is still unbound. Why?


More information about the erlang-questions mailing list