# `Calendrical.InvalidDateError`

Exception returned when a value is not a date of a calendar: a day the
month does not have, a month the year does not have, a week the year
does not have, or a field that is not an integer.

### Fields

* `:calendar` — the calendar module that was asked, or `nil` when no
  calendar was given.

* `:value` — what was asked for: a `{year, month, day}` for a date, or a
  keyword list naming the fields of anything else, such as `[year: 0]`,
  `[year: 2026, quarter: 5]` or `[year: 2026, week: 54]`.

---

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