lib/parse/parse_error.ex
defmodule Timex.Parse.ParseError do
@moduledoc """
Used for errors encountered during parsing.
"""
alias Timex.Parse.ParseError
defexception message: "Invalid input!"
def exception(message: message) do
%ParseError{message: message}
end
end