# `Color.ANSI.ParseError`

Raised when `Color.ANSI.parse/1` cannot interpret an ANSI SGR
escape sequence.

Has fields:

* `:sequence` — the offending input binary.

* `:reason` — a short atom describing the failure:

  * `:no_csi` — the input does not start with `ESC [`.

  * `:no_terminator` — the sequence has no closing `m`.

  * `:no_colour_param` — the sequence has a CSI and terminator
    but no colour parameter (e.g. `\e[0m` reset, `\e[1m` bold,
    `\e[39m` default-foreground).

  * `:bad_index` — a 256-colour index (`38;5;N`) is out of range
    or not a valid integer.

  * `:bad_rgb` — a truecolor R/G/B triple is out of range or not
    valid integers.

---

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