Tempo.RoundingError exception (Tempo v0.5.0)

Copy Markdown View Source

Exception raised when a rounding operation cannot be performed — typically because the target unit is not reachable from the value's current resolution under the active calendar.

Summary

Types

t()

@type t() :: %Tempo.RoundingError{
  __exception__: true,
  reason: atom() | String.t() | nil,
  unit: atom() | nil,
  value: Tempo.t() | nil
}