Tempo.MaterialisationError exception (Tempo v0.6.0)

Copy Markdown View Source

Exception raised when a value cannot be materialised into an explicit Tempo.Interval or Tempo.IntervalSet.

Reasons include a bare Tempo.Duration (no time-line anchor), a one-of Tempo.Set (epistemic disjunction, not an interval list), and a Tempo already at its finest resolution (no finer unit to bound the implicit span).

Summary

Types

reason()

@type reason() ::
  :bare_duration | :one_of_set | :finest_resolution | atom() | String.t()

t()

@type t() :: %Tempo.MaterialisationError{
  __exception__: term(),
  reason: reason() | nil,
  value: any() | nil
}