Tempo.SQL.UnsupportedValueError exception (Tempo SQL v0.1.0)

View Source

Raised (or returned from cast/2) when a Tempo value cannot be stored in a PostgreSQL range type.

See the "Storage contract" section of the README for the full list of cases this error is raised for — the common ones are recurrence rules, uncertain/approximate qualifications, non- Gregorian calendars, time-zone shifts, and partial time slots (year-only or year-month-only values that have not been materialised to an explicit span via Tempo.to_interval/1).

Summary

Types

t()

@type t() :: %Tempo.SQL.UnsupportedValueError{
  __exception__: term(),
  message: String.t(),
  reason: atom(),
  value: term()
}