-
Notifications
You must be signed in to change notification settings - Fork 118
/
errors.go
24 lines (22 loc) · 1.4 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
package types
import (
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
)
// Exported code type numbers
var (
ErrProphecyNotFound = sdkerrors.Register(ModuleName, 1, "prophecy with given id not found")
ErrMinimumConsensusNeededInvalid = sdkerrors.Register(ModuleName, 2,
"minimum consensus proportion of validator staking power must be > 0 and <= 1")
ErrNoClaims = sdkerrors.Register(ModuleName, 3, "cannot create prophecy without initial claim")
ErrInvalidIdentifier = sdkerrors.Register(ModuleName, 4,
"invalid identifier provided, must be a nonempty string")
ErrProphecyFinalized = sdkerrors.Register(ModuleName, 5, "prophecy already finalized")
ErrDuplicateMessage = sdkerrors.Register(ModuleName, 6,
"already processed message from validator for this id")
ErrInvalidClaim = sdkerrors.Register(ModuleName, 7, "claim cannot be empty string")
ErrInvalidValidator = sdkerrors.Register(ModuleName, 8, "claim must be made by actively bonded validator")
ErrInternalDB = sdkerrors.Register(ModuleName, 9, " failed prophecy serialization/deserialization")
ErrValidatorNotInWhiteList = sdkerrors.Register(ModuleName, 10, "validator must be in whitelist")
ErrNotAdminAccount = sdkerrors.Register(ModuleName, 11, "Not an admin account")
ErrInvalidOperationType = sdkerrors.Register(ModuleName, 12, "invalid operation type for validator whitelist")
)