-
Notifications
You must be signed in to change notification settings - Fork 0
/
errors.go
23 lines (19 loc) · 911 Bytes
/
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
package glow
import "errors"
var (
ErrEmptyNetwork = errors.New("network is empty")
ErrNetworkNeedPurging = errors.New("network needs purging")
ErrNodeNotFound = errors.New("node not found")
ErrBadNodeKey = errors.New("bad node key")
ErrNodeAlreadyExists = errors.New("node already exists")
ErrNodeIsConnected = errors.New("node is connected")
ErrSeedingDone = errors.New("seeding is done")
ErrNodeGoingAway = errors.New("node is going away")
ErrIsolatedNodeFound = errors.New("isolated node found")
ErrNodeFunctionMissing = errors.New("node function missing")
ErrTooManyNodeFunction = errors.New("too many node functions")
ErrLinkNotFound = errors.New("link not found")
ErrLinkAlreadyExists = errors.New("link already exists")
ErrCyclesNotAllowed = errors.New("cycles not allowed")
ErrLinkAlreadyPaused = errors.New("link already paused")
)