MCPcopy Create free account
hub / github.com/ajitpratap0/GoSQLX / Error

Method Error

pkg/models/tokenizer_error.go:69–71  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

67// err := models.TokenizerError{Message: "invalid token", Location: loc}
68// fmt.Println(err.Error()) // Output: "invalid token"
69func (e TokenizerError) Error() string {
70 return e.Message
71}

Calls

no outgoing calls