1
0
mirror of https://github.com/imgproxy/imgproxy.git synced 2025-12-28 22:21:10 +02:00
Files
imgproxy/xmlparser/errors.go
2025-10-24 23:34:05 +03:00

22 lines
366 B
Go

package xmlparser
import (
"fmt"
"net/http"
"github.com/imgproxy/imgproxy/v3/ierrors"
)
type (
SyntaxError struct{ error }
)
func newSyntaxError(msg string, args ...any) error {
return ierrors.Wrap(
SyntaxError{fmt.Errorf(msg, args...)},
1,
ierrors.WithPublicMessage("SVG syntax error"),
ierrors.WithStatusCode(http.StatusUnprocessableEntity),
)
}