PurposelyUnimplemented wraps Error, setting lastUnimplementedError.
(feature string, reason string)
| 189 | |
| 190 | // PurposelyUnimplemented wraps Error, setting lastUnimplementedError. |
| 191 | func (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 |
nothing calls this directly
no test coverage detected