MCPcopy Create free account
hub / github.com/dolthub/doltgresql / PurposelyUnimplemented

Method PurposelyUnimplemented

postgres/parser/parser/lexer.go:191–202  ·  view source on GitHub ↗

PurposelyUnimplemented wraps Error, setting lastUnimplementedError.

(feature string, reason string)

Source from the content-addressed store, hash-verified

189
190// PurposelyUnimplemented wraps Error, setting lastUnimplementedError.
191func (l *lexer) PurposelyUnimplemented(feature string, reason string) {
192 // We purposely do not use unimp here, as it appends hints to suggest that
193 // the error may be actively tracked as a bug.
194 l.lastError = errors.WithHint(
195 errors.WithTelemetry(
196 pgerror.Newf(pgcode.Syntax, "unimplemented: this syntax"),
197 fmt.Sprintf("sql.purposely_unimplemented.%s", feature),
198 ),
199 reason,
200 )
201 l.populateErrorDetails()
202}
203
204// setErr is called from parsing action rules to register an error observed
205// while running the action. That error becomes the actual "cause" of the

Callers

nothing calls this directly

Calls 2

populateErrorDetailsMethod · 0.95
NewfFunction · 0.92

Tested by

no test coverage detected