Tempo.ParseError exception (Tempo v0.3.0)

Copy Markdown View Source

Exception raised when an ISO 8601 or IXDTF string cannot be parsed.

Carries the raw input, a short reason atom or phrase identifying the parse failure, and the byte offset into input at which the parser stopped (when available).

Summary

Types

t()

@type t() :: %Tempo.ParseError{
  __exception__: true,
  input: String.t() | nil,
  offset: non_neg_integer() | nil,
  reason: atom() | String.t() | nil
}