MCPcopy Create free account
hub / github.com/imgproxy/imgproxy / newSyntaxError

Function newSyntaxError

xmlparser/errors.go:14–21  ·  view source on GitHub ↗
(msg string, args ...any)

Source from the content-addressed store, hash-verified

12)
13
14func newSyntaxError(msg string, args ...any) error {
15 return SyntaxError{errctx.NewTextError(
16 fmt.Sprintf(msg, args...),
17 1,
18 errctx.WithPublicMessage("SVG syntax error"),
19 errctx.WithStatusCode(http.StatusUnprocessableEntity),
20 )}
21}

Callers 1

setSyntaxErrorfMethod · 0.85

Calls 3

NewTextErrorFunction · 0.92
WithPublicMessageFunction · 0.92
WithStatusCodeFunction · 0.92

Tested by

no test coverage detected