-
Notifications
You must be signed in to change notification settings - Fork 24
/
errors.go
20 lines (18 loc) · 954 Bytes
/
errors.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package common
import "errors"
var (
// ErrFeedAlreadyExists is returned when a feed is already exists in the DB.
ErrFeedAlreadyExists = errors.New("feed already exists")
// ErrFeedNotFound is returned when a feed is not found in the DB.
ErrFeedNotFound = errors.New("feed not found")
// ErrFilterNotFound is returned when a filter is not found in the DB.
ErrFilterNotFound = errors.New("filter not found")
// ErrOutputNotFound is returned when a output is not found in the DB.
ErrOutputNotFound = errors.New("output not found")
// ErrFeedQuotaExceeded is returned when feed quota is exceeded.
ErrFeedQuotaExceeded = errors.New("feed quota exceeded")
// ErrOutputQuotaExceeded is returned when output quota is exceeded.
ErrOutputQuotaExceeded = errors.New("output quota exceeded")
// ErrArticleShouldBeIgnored is returned by a filter when a article should not be send
ErrArticleShouldBeIgnored = errors.New("article should be ignored")
)