ArgumentError — Elixir v1.18.3 (original) (raw)
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 ArgumentErrorexceptions.