MCPcopy
hub / github.com/alecthomas/participle / ParseError

Struct ParseError

error.go:66–69  ·  view source on GitHub ↗

nolint: golint ParseError is returned when a parse error occurs. It is useful for differentiating between parse errors and other errors such as lexing and IO errors.

Source from the content-addressed store, hash-verified

64// It is useful for differentiating between parse errors and other errors such
65// as lexing and IO errors.
66type ParseError struct {
67 Msg string
68 Pos lexer.Position
69}
70
71func (p *ParseError) Error() string { return FormatError(p) }
72func (p *ParseError) Message() string { return p.Msg }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected