# `CondClauseError`
[🔗](https://github.com/elixir-lang/elixir/blob/v1.20.0-rc.3/lib/elixir/lib/exception.ex#L1596)

An exception raised when no clauses in a `cond/1` expression evaluate to a truthy value.

For example, this exception gets raised for a `cond/1` like the following:

    iex> cond do
    ...>   1 + 1 == 3 -> :woah
    ...>   nil -> "yeah this won't happen"
    ...> end
    ** (CondClauseError) no cond clause evaluated to a truthy value

---

*Consult [api-reference.md](api-reference.md) for complete listing*
