1
0
mirror of https://github.com/imgproxy/imgproxy.git synced 2026-06-17 23:17:46 +02:00
Files

22 lines
383 B
Go
Raw Permalink Normal View History

2025-11-27 01:43:04 +06:00
package xmlparser
import (
"fmt"
"net/http"
2026-05-13 18:48:55 +03:00
"github.com/imgproxy/imgproxy/v4/errctx"
2025-11-27 01:43:04 +06:00
)
type (
SyntaxError struct{ *errctx.TextError }
)
func newSyntaxError(msg string, args ...any) error {
return SyntaxError{errctx.NewTextError(
fmt.Sprintf(msg, args...),
1,
errctx.WithPublicMessage("SVG syntax error"),
errctx.WithStatusCode(http.StatusUnprocessableEntity),
)}
}