forked from centrifugal/centrifuge-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
errors.go
25 lines (23 loc) · 1.01 KB
/
errors.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package centrifuge
import (
"errors"
)
var (
// ErrTimeout returned if operation timed out.
ErrTimeout = errors.New("timeout")
// ErrClientClosed can be returned if client already closed.
ErrClientClosed = errors.New("client closed")
// ErrClientDisconnected can be returned if client goes to
// disconnected state while operation in progress.
ErrClientDisconnected = errors.New("client disconnected")
// ErrReconnectFailed returned when reconnect to server failed (never
// happen by default since client keeps reconnecting forever).
ErrReconnectFailed = errors.New("reconnect failed")
// ErrDuplicateSubscription returned if subscription to the same channel
// already registered in current client instance. This is due to the fact
// that server does not allow subscribing to the same channel twice for
// the same connection.
ErrDuplicateSubscription = errors.New("duplicate subscription")
// ErrSubscribeClosed returned if Subscription was closed.
ErrSubscriptionClosed = errors.New("subscription closed")
)