Files
external-snapshotter/vendor/github.com/mailru/easyjson/jlexer/error.go
Humble Chirammal 4b1dd81de1 update kube dependencies to v1.24.0 release
Signed-off-by: Humble Chirammal <hchiramm@redhat.com>
2022-05-05 08:58:19 +05:30

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