ArgumentError — Elixir v1.16.3

Search documentation of Elixir

# View Source ArgumentError exception (Elixir v1.16.3)

An exception raised when an argument to a function is invalid.

You can raise this exception when you want to signal that an argument to a function is invalid.

`ArgumentError` exceptions have a single field, `:message` (a `String.t/0`), which is public and can be accessed freely when reading or creating `ArgumentError` exceptions.