Tempo.InvalidCalendarError exception (Tempo v0.19.2)

Copy Markdown View Source

Exception returned (or raised, by the ! variants) when a calendar argument to Tempo.from_iso8601/2 is not a usable calendar module.

This most often happens when a namespace is passed instead of a concrete calendar — for example Calendrical.Islamic, whose concrete forms are Calendrical.Islamic.Civil, Calendrical.Islamic.UmmAlQura, and so on.

Summary

Types

t()

@type t() :: %Tempo.InvalidCalendarError{
  __exception__: term(),
  calendar: module() | nil,
  reason: atom() | String.t() | nil
}