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.
:year
:month
:week
:day
:hour
:minute
:second
:day_of_year
:day_of_week
@type t() :: %Tempo.InvalidUnitError{ __exception__: term(), unit: any() | nil, valid_units: [atom()] | nil }