Tempo.ConversionError exception (Tempo v0.5.0)

Copy Markdown View Source

Exception raised when a Tempo value cannot be converted to the requested target — typically a standard-library Date.t/0, Time.t/0, NaiveDateTime.t/0, or DateTime.t/0, or in the reverse direction an ISO 8601 or IXDTF encoding that the target type does not support.

Summary

Types

t()

@type t() :: %Tempo.ConversionError{
  __exception__: true,
  reason: atom() | String.t() | nil,
  target: atom() | module() | String.t() | nil,
  value: any() | nil
}