-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patherrors.go
More file actions
20 lines (18 loc) · 1.03 KB
/
Copy patherrors.go
File metadata and controls
20 lines (18 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package events
import "errors"
var (
// ErrInvalidHandler indicates a subscribe handler has an unsupported shape.
ErrInvalidHandler = errors.New("events: invalid handler")
// ErrNilEvent indicates a publish call received a nil event.
ErrNilEvent = errors.New("events: nil event")
// ErrEmptyTopic indicates topic resolution produced an empty topic.
ErrEmptyTopic = errors.New("events: empty topic")
// ErrUnsupportedDriver indicates a local bus was configured with a transport-only driver.
ErrUnsupportedDriver = errors.New("events: unsupported local driver")
// ErrNilSubscription indicates a transport accepted registration without returning a subscription.
ErrNilSubscription = errors.New("events: transport returned nil subscription")
// ErrNilTransport indicates a typed-nil transport was passed as a required collaborator.
ErrNilTransport = errors.New("events: transport must not be nil")
// ErrNilCodec indicates a typed-nil codec was passed as a required collaborator.
ErrNilCodec = errors.New("events: codec must not be nil")
)