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

Function NewError

pkg/sql/tokenizer/error.go:62–67  ·  view source on GitHub ↗

NewError creates a new tokenization error with a message and location. Parameters: - message: Human-readable description of the error - location: Position in the input where the error occurred Returns a pointer to an Error with the specified message and location.

(message string, location models.Location)

Source from the content-addressed store, hash-verified

60//
61// Returns a pointer to an Error with the specified message and location.
62func NewError(message string, location models.Location) *Error {
63 return &Error{
64 Message: message,
65 Location: location,
66 }
67}
68
69// ErrorUnexpectedChar creates an error for an unexpected character.
70//

Callers 6

TestTokenizerErrorFunction · 0.70
ErrorUnexpectedCharFunction · 0.70
ErrorUnterminatedStringFunction · 0.70
ErrorInvalidNumberFunction · 0.70
ErrorInvalidIdentifierFunction · 0.70
ErrorInvalidOperatorFunction · 0.70

Calls

no outgoing calls

Tested by 1

TestTokenizerErrorFunction · 0.56