FunctionClauseError exception (Elixir v1.20.0-rc.1)

Copy Markdown View Source

An exception raised when a function call doesn't match any defined clause.

For example:

iex> List.duplicate(:ok, -3)
** (FunctionClauseError) no function clause matching in List.duplicate/2

The following fields of this exception are public and can be accessed freely: