Calendrical.TimeParseError exception (Calendrical v0.9.1)

Copy Markdown

Returned (or raised) by Calendrical.Time.parse/2 when an input string cannot be interpreted as a time.

Carries semantic fields only; the human-readable description is materialised by message/1 so callers can pattern-match on structure (input/locale) without parsing prose.

Fields

  • :input — the raw string that failed to parse.

  • :locale — the locale the parser tried.

Summary

Types

t()

@type t() :: %Calendrical.TimeParseError{
  __exception__: term(),
  input: String.t() | nil,
  locale: atom() | String.t() | nil
}