[erlang-questions] Best practices for handling invalid / unexpected messages

Max Lapshin <>
Sat May 14 11:52:19 CEST 2011


I always make

handle_call(Call, _From, State) ->
  {stop, {invalid_call, Call}, State}.

as a last clause because it is a best way to know that _I_ haven't
validated call in function, that make gen_server:call



More information about the erlang-questions mailing list