View Source RuntimeError exception (Elixir v1.17.0-dev)
An exception for a generic runtime error.
This is the exception that
raise/1 raises when you pass it only a string as
iex> raise "oops!"
** (RuntimeError) oops!
You should use this exceptions sparingly, since most of the time it might be
better to define your own exceptions specific to your application or library.
Sometimes, however, there are situations in which you don't expect a condition to
happen, but you want to give a meaningful error message if it does. In those cases,
RuntimeError can be a good choice.