Error implements the error interface. Returns the error message. For full context and location information, use the errors package which provides FormatErrorWithContext. Example: err := models.TokenizerError{Message: "invalid token", Location: loc} fmt.Println(err.Error()) // Output: "invalid t
()
| 67 | // err := models.TokenizerError{Message: "invalid token", Location: loc} |
| 68 | // fmt.Println(err.Error()) // Output: "invalid token" |
| 69 | func (e TokenizerError) Error() string { |
| 70 | return e.Message |
| 71 | } |
no outgoing calls