1
0
Fork 0
mirror of https://github.com/Luzifer/elastic_cron.git synced 2024-11-14 00:12:46 +00:00
elastic_cron/vendor/github.com/mailru/easyjson/jlexer/error.go
Knut Ahlers 9f3c6fbb02
Add dependencies
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2018-04-15 14:06:54 +02:00

15 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)
}