GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Elixir

This view

  • Original page
  • New address

GeezerVison is showing elixir.hexdocs.pm — ArgumentError — Elixir v1.20.5

ArgumentError exception (Elixir v1.20.5)

Copy Markdown View Source

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. For example, this exception is raised when calling Integer.to_string/1 with an invalid argument:

iex> Integer.to_string(1.0)
** (ArgumentError) errors were found at the given arguments:
...

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.

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.