1
0
mirror of https://github.com/rancher/rke.git synced 2025-09-17 07:30:01 +00:00
Files
rke/vendor/github.com/mailru/easyjson/jlexer/error.go
galal-hussein c4677f8ee6 Vendor update
2017-11-06 19:40:19 +02:00

16 lines
365 B
Go

package jlexer
import "fmt"
// LexerError implements the error interface and represents all possible errors that can be
// generated during parsing the JSON data.
type LexerError struct {
Reason string
Offset int
Data string
}
func (l *LexerError) Error() string {
return fmt.Sprintf("parse error: %s near offset %d of '%s'", l.Reason, l.Offset, l.Data)
}