WithHint adds a suggestion hint to the error. Attaches a helpful suggestion for fixing the error. Hints are generated automatically by builder functions or can be added manually. Parameters: - hint: Suggestion text (e.g., "Did you mean 'FROM' instead of 'FORM'?") Returns the same Error instance w
(hint string)
| 397 | // |
| 398 | // Note: WithHint modifies the error in-place and returns it for chaining. |
| 399 | func (e *Error) WithHint(hint string) *Error { |
| 400 | e.Hint = hint |
| 401 | return e |
| 402 | } |
| 403 | |
| 404 | // WithCause adds an underlying cause error. |
| 405 | // |
no outgoing calls