ErlangError exception (Elixir v1.19.0-dev)

View Source

An exception raised when invoking an Erlang code that errors with a value not handled by Elixir.

Most common error reasons, such as :badarg are automatically converted into exceptions by Elixir. However, you may invoke some code that emits a custom error reason and those get wrapped into ErlangError:

iex> :erlang.error(:some_invalid_error)
** (ErlangError) Erlang error: :some_invalid_error