-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy patherrors.go
19 lines (17 loc) · 1016 Bytes
/
errors.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package raft
import "errors"
// Standard errors for primary operations.
var (
ErrCommitIndex = errors.New("commit index does not refer to an entry in the log")
ErrAlreadyCommitted = errors.New("commit index precedes current commit index")
ErrMissingCommit = errors.New("cannot commit entry higher than found in log")
ErrNotImplemented = errors.New("functionality not implemented yet")
ErrEventTypeError = errors.New("captured event with wrong value type")
ErrEventSourceError = errors.New("captured event with wrong source type")
ErrUnknownState = errors.New("raft in an unknown state")
ErrNotListening = errors.New("replica is not listening for events")
ErrRetries = errors.New("could not connect after several attempts")
ErrNoNetwork = errors.New("no network specified in the configuration")
ErrBenchmarkMode = errors.New("specify either fixed duration or maximum operations benchmark mode")
ErrBenchmarkRun = errors.New("benchmark has already been run")
)