ex_yarn v0.3.1 ExYarn.ParseError View Source

Represents an error that has occured while parsing a lockfile.

An error contains an error message and, if possible, the ExYarn.Token that caused the error.

Link to this section Summary

Types

t()

A parsing error

Link to this section Types

Specs

t() :: %ExYarn.ParseError{error: String.t(), token: ExYarn.Token.t() | nil}

A parsing error

Error content:

  • :error: A String explaining what went wrong
  • :token: If available, the ExYarn.Token that caused the error

Link to this section Functions

Specs

new(String.t(), ExYarn.Token.t() | nil) :: t()

Returns a new ExYarn.ParseError