Tempo.IntervalEndpointsError exception (Tempo v0.7.0)

Copy Markdown View Source

Exception raised when an operation requires an interval whose endpoints are both concrete %Tempo{} structs, but the supplied interval carries recurrence, duration-only, or otherwise non-concrete endpoints.

Materialise the interval with Tempo.to_interval/1,2 first.

Summary

Types

t()

@type t() :: %Tempo.IntervalEndpointsError{
  __exception__: term(),
  interval: Tempo.Interval.t() | nil,
  operation: atom() | String.t() | nil,
  reason: atom() | String.t() | nil
}