http urls monitor.

error.go 365B

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