Tempo.InvalidUnitError exception (Tempo v0.7.0)

Copy Markdown View Source

Exception raised when an unrecognised time-unit atom is passed to a function expecting one of :year, :month, :week, :day, :hour, :minute, :second, :day_of_year, or :day_of_week.

Summary

Types

t()

@type t() :: %Tempo.InvalidUnitError{
  __exception__: term(),
  unit: any() | nil,
  valid_units: [atom()] | nil
}