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

Function UnterminatedBlockCommentError

pkg/errors/builders.go:63–69  ·  view source on GitHub ↗

UnterminatedBlockCommentError creates an E1009 error for a block comment that was opened with /* but never closed with */. The hint guides the caller to add the missing closing delimiter. Parameters: - location: Line/column where the /* opening was found - sql: Full SQL source used to generate visu

(location models.Location, sql string)

Source from the content-addressed store, hash-verified

61// - location: Line/column where the /* opening was found
62// - sql: Full SQL source used to generate visual context
63func UnterminatedBlockCommentError(location models.Location, sql string) *Error {
64 return NewError(
65 ErrCodeUnterminatedBlockComment,
66 "unterminated block comment (missing */)",
67 location,
68 ).WithContext(sql, 2).WithHint("Close the comment with */ or check for unmatched /*")
69}
70
71// InvalidNumberError creates an E1003 error for a malformed numeric literal, such as
72// a number with multiple decimal points (1.2.3) or an invalid exponent format.

Callers 1

readPunctuationMethod · 0.92

Calls 3

WithHintMethod · 0.80
NewErrorFunction · 0.70
WithContextMethod · 0.45

Tested by

no test coverage detected