Tempo.ParseError exception (Tempo v2.1.1)

Copy Markdown View Source

Text that is not an ISO 8601 expression Tempo reads.

  • :text is the text given.

  • :rest is the text from the place the reader stopped, which names the position.

  • :reason says what was expected or refused there.

  • :as is what the text was read as: "ISO 8601", the default, or "a date rule" for Tempo.DateRule.

Summary

Types

t()

@type t() :: %Tempo.ParseError{
  __exception__: term(),
  as: String.t(),
  reason: term(),
  rest: String.t() | nil,
  text: String.t()
}