BadFunctionError exception (Elixir v1.19.0-dev)

View Source

An exception raised when a function is expected, but something else was given.

For example:

iex> value = "hello"
value.()
** (BadFunctionError) expected a function, got: "hello"