An exception raised when a term in a case/2 expression does not match any of the defined -> clauses.
The following fields of this exception are public and can be accessed freely:
:term (term/0) - the term that did not match any of the clausesFor example, this exception gets raised for a case/2 like the following:
case System.unique_integer() do bin when is_binary(bin) -> :oops :ok -> :neither_this_one end
© 2012-2024 The Elixir Team
Licensed under the Apache License, Version 2.0.
https://hexdocs.pm/elixir/1.18.1/CaseClauseError.html