30 lines
431 B
Go
30 lines
431 B
Go
package adser
|
|
|
|
type ErrImgURLInvalid struct {
|
|
}
|
|
|
|
func (ErrImgURLInvalid) Error() string {
|
|
return "picture url is invalid!"
|
|
}
|
|
|
|
type ErrImgTooBig struct {
|
|
}
|
|
|
|
func (ErrImgTooBig) Error() string {
|
|
return "picture is too big!"
|
|
}
|
|
|
|
type ErrImgScale struct {
|
|
}
|
|
|
|
func (ErrImgScale) Error() string {
|
|
return "picture cale is invalid!"
|
|
}
|
|
|
|
type ErrImgContent struct {
|
|
}
|
|
|
|
func (ErrImgContent) Error() string {
|
|
return "picture is invalid!"
|
|
}
|