Search Apps Documentation Source Content File Folder Download Copy Actions Download State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

errors.gno

1.03 Kb · 21 lines
 1package game
 2
 3import "errors"
 4
 5var (
 6	errSpoofedRealm   = errors.New("gnofly: spoofed realm")
 7	errNotOwner       = errors.New("gnofly: caller is not the owner")
 8	errNotAdmin       = errors.New("gnofly: caller is not an admin")
 9	errNotReferee     = errors.New("gnofly: caller is not a referee")
10	errInvalidAddress = errors.New("gnofly: invalid address")
11	errAlreadyAdmin   = errors.New("gnofly: address is already an admin")
12	errNoSuchAdmin    = errors.New("gnofly: address is not in the admin list")
13	errAlreadyReferee = errors.New("gnofly: address is already a referee")
14	errNoSuchReferee  = errors.New("gnofly: address is not a referee")
15	errTreasurySelf   = errors.New("gnofly: the treasury cannot be the realm itself")
16
17	errUnknownParam     = errors.New("gnofly: unknown param")
18	errInvalidBounds    = errors.New("gnofly: bounds must satisfy 0 <= min <= max")
19	errValueOutOfBounds = errors.New("gnofly: the current value is outside these bounds, set the value first")
20	errLeaderboardMin   = errors.New("gnofly: leaderboard_size cannot go below 1")
21)