govd/util/errors.go
stefanodvx 3faede7b1c Init
2025-04-14 13:05:43 +02:00

23 lines
1.1 KiB
Go

package util
type Error struct {
Message string
}
func (err *Error) Error() string {
return err.Message
}
var (
ErrUnavailable = &Error{Message: "this content is unavailable"}
ErrNotImplemented = &Error{Message: "this feature is not implemented"}
ErrTimeout = &Error{Message: "timeout error when downloading. try again"}
ErrUnknownRIFF = &Error{Message: "uknown RIFF format"}
ErrUnsupportedImageFormat = &Error{Message: "unsupported image format"}
ErrFileTooShort = &Error{Message: "file too short"}
ErrDownloadFailed = &Error{Message: "download failed"}
ErrUnsupportedExtractorType = &Error{Message: "unsupported extractor type"}
ErrMediaGroupLimitExceeded = &Error{Message: "media group limit exceeded for this group. try changing /settings"}
ErrNSFWNotAllowed = &Error{Message: "this content is marked as nsfw and can't be downloaded in this group. try changing /settings or use me privately"}
ErrInlineMediaGroup = &Error{Message: "you can't download media groups in inline mode. try using me in a private chat"}
)