-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patherrors.go
More file actions
24 lines (17 loc) · 936 Bytes
/
errors.go
File metadata and controls
24 lines (17 loc) · 936 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package bus
import "errors"
// Common errors returned by the bus package.
var (
// ErrInvalidQueue indicates that the queue name is invalid.
ErrInvalidQueue = errors.New("queue is invalid")
// ErrInvalidMessage indicates that the message is invalid.
ErrInvalidMessage = errors.New("message is invalid")
// ErrInvalidSubject indicates that the subject is invalid.
ErrInvalidSubject = errors.New("subject is invalid")
// ErrInvalidPattern indicates that the pattern is invalid.
ErrInvalidPattern = errors.New("pattern is invalid")
// ErrSubscriptionNotFound is returned when no subscription is found.
ErrSubscriptionNotFound = errors.New("subscription not found")
// ErrOverlappingPatterns is returned when a queue has multiple patterns matching the same subject.
ErrOverlappingPatterns = errors.New("queue has overlapping patterns which may cause unexpected behavior; only the first subscription will be triggered")
)