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
Functions
Returns a new ExYarn.ParseError
Link to this section Types
Specs
t() :: %ExYarn.ParseError{error: String.t(), token: ExYarn.Token.t() | nil}
A parsing error
Error content:
:error
: AString
explaining what went wrong:token
: If available, theExYarn.Token
that caused the error
Link to this section Functions
Specs
new(String.t(), ExYarn.Token.t() | nil) :: t()
Returns a new ExYarn.ParseError