檢視原始碼 CondClauseError 例外 (Elixir v1.16.2)

cond/1 表達式中沒有子句評估為真值時引發的例外。

例如,對於像以下的 cond/1 會引發此例外

cond do
  1 + 1 == 3 -> :woah
  nil -> "yeah this won't happen
end