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

Struct Error

pkg/sql/tokenizer/error.go:40–43  ·  view source on GitHub ↗

Error represents a tokenization error with precise location information. This type provides structured error reporting with line and column positions, making it easy for users to identify and fix SQL syntax issues. Note: Modern code should use the errors from pkg/errors package instead, which prov

Source from the content-addressed store, hash-verified

38// }
39// }
40type Error struct {
41 Message string // Human-readable error message
42 Location models.Location // Position where the error occurred (1-based)
43}
44
45// Error implements the error interface, returning a formatted error message
46// with location information.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected