Tempo.ResolutionError exception (Tempo v0.4.1)

Copy Markdown View Source

Exception raised when a resolution operation cannot be performed — truncating to a finer unit than the current resolution, extending to a coarser unit, or following a unit-successor chain that terminates before the target under a particular calendar.

Summary

Types

t()

@type t() :: %Tempo.ResolutionError{
  __exception__: true,
  calendar: module() | nil,
  current: atom() | nil,
  operation: atom() | nil,
  reason: atom() | String.t() | nil,
  target: atom() | nil
}