1234567891011121314151617181920212223 |
- package imagetype
- import (
- "net/http"
- "github.com/imgproxy/imgproxy/v3/ierrors"
- )
- type (
- UnknownFormatError struct{}
- )
- func newUnknownFormatError() error {
- return ierrors.Wrap(
- UnknownFormatError{},
- 1,
- ierrors.WithStatusCode(http.StatusUnprocessableEntity),
- ierrors.WithPublicMessage("Invalid source image"),
- ierrors.WithShouldReport(false),
- )
- }
- func (e UnknownFormatError) Error() string { return "Source image type not supported" }
|