-
Notifications
You must be signed in to change notification settings - Fork 41
Expand file tree
/
Copy patherrors.go
More file actions
24 lines (22 loc) · 774 Bytes
/
Copy patherrors.go
File metadata and controls
24 lines (22 loc) · 774 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 mqtt
import (
"errors"
)
var (
// ErrConnect mqtt connection error
ErrConnect = errors.New("connection failed")
// ErrState unexpected runtime state
ErrState = errors.New("invalid state")
// ErrClient given mqtt client is not connected
ErrClient = errors.New("client is not connected")
// ErrTimeout operation timeout
ErrTimeout = errors.New("operation timeout")
// ErrTimeoutToLong timeout value is too large
ErrTimeoutToLong = errors.New("timeout value is too large")
// ErrSubscribe failed to subscribe to mqtt topic
ErrSubscribe = errors.New("subscribe failure")
// ErrConsumeToken consume token is invalid
ErrConsumeToken = errors.New("invalid consume token")
// ErrPublish publish to mqtt failed
ErrPublish = errors.New("publish failure")
)