This is an alternative site for discovering Elm packages. You may be looking for the official Elm package site instead.

Error

DateParser Error

type Error = PatternError String | ParsingError Parser.Error | DateError String

DateParser Error type

An error can comes from different phases in the parsing process:

  • PatternError: an error that comes from when trying to parse the date pattern
  • ParsingError: an error that comes from parsing the date string.
  • DateError: an error when trying to construct a Date from the parsed information.
module Error exposing (Error(..))

{-| DateParser Error

@docs Error

-}

import Parser


{-| DateParser Error type

An error can comes from different phases in the parsing process:

  - PatternError: an error that comes from when trying to parse the date pattern
  - ParsingError: an error that comes from parsing the date string.
  - DateError: an error when trying to construct a Date from the parsed information.

-}
type Error
    = PatternError String
    | ParsingError Parser.Error
    | DateError String