(ctx context.Context, key, format string, args ...any)
| 53 | } |
| 54 | |
| 55 | func newOptionArgumentError(ctx context.Context, key, format string, args ...any) error { |
| 56 | url := errctx.DocsBaseURL(ctx, defaultDocsUrl) |
| 57 | if key != "" { |
| 58 | url = url + "#" + errorKey(key) |
| 59 | } |
| 60 | |
| 61 | return OptionArgumentError{errctx.NewTextError( |
| 62 | fmt.Sprintf(format, args...), |
| 63 | 1, |
| 64 | errctx.WithStatusCode(http.StatusNotFound), |
| 65 | errctx.WithPublicMessage("Invalid URL"), |
| 66 | errctx.WithDocsURL(url), |
| 67 | errctx.WithShouldReport(false), |
| 68 | )} |
| 69 | } |
| 70 | |
| 71 | func newSecurityOptionsError(ctx context.Context) error { |
| 72 | return SecurityOptionsError{errctx.NewTextError( |
no test coverage detected