# `Color.PaletteError`

Raised when a palette cannot be generated — typically because of
invalid options (bad stop list, out-of-range anchor, unreachable
contrast target, etc.).

Has fields:

* `:reason` — a short atom describing the failure (e.g.
  `:empty_stops`, `:duplicate_stops`, `:invalid_anchor`,
  `:invalid_seed`, `:unknown_option`).

* `:detail` — a human-readable string with more context.

---

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