Packages

B-trees of order 5 (tree, set, order-statistic multiset) for Elixir

Current section

Files

Jump to
xb5_elixir lib xb5 empty_error.ex
Raw

lib/xb5/empty_error.ex

defmodule Xb5.EmptyError do
@moduledoc """
Raised when an operation requires a non-empty collection but an empty one was given.
This exception is raised by functions such as `Xb5.Bag.first!/1`,
`Xb5.Set.pop_last!/1`, `Xb5.Tree.pop_first!/1`, and similar bang variants across
all three modules.
"""
defexception message: "empty error"
end