# `Calendrical.DateRangeParseError`

Raised (or returned as `{:error, _}`) by
`Calendrical.Date.parse_range/2` when the input can't be
interpreted as a date range, or when both endpoints parsed
successfully but the resulting range is invalid (e.g.
inverted when `:allow_inverted` is `false`).

### Fields

* `:message` — human-readable description of the failure.

* `:input` — the raw input (string or `{from, to}` tuple).

* `:reason` — atom describing the failure category:
  `:no_separator`, `:inverted`, `:from_parse_failed`,
  `:to_parse_failed`.

* `:cause` — when the failure is from a sub-parse, the
  underlying `Calendrical.DateParseError`.

---

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