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

Interface Error

error.go:14–20  ·  view source on GitHub ↗

Error represents an error while parsing. The format of an Error is in the form "[ :][ : :] ". The error will contain positional information if available.

Source from the content-addressed store, hash-verified

12//
13// The error will contain positional information if available.
14type Error interface {
15 error
16 // Unadorned message.
17 Message() string
18 // Closest position to error location.
19 Position() lexer.Position
20}
21
22// FormatError formats an error in the form "[<filename>:][<line>:<pos>:] <message>"
23func FormatError(err Error) string {

Callers 6

decorateFunction · 0.65
FormatErrorFunction · 0.65
WrapfFunction · 0.65
decorateFunction · 0.65
FormatErrorFunction · 0.65
WrapfFunction · 0.65

Implementers 3

ParseErrorerror.go
Errorlexer/errors.go

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…