Skip to content Search Apps Documentation Source Content Run Reset Eval Playground File Folder Download Copy Actions State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

Community realm. Read the code first. Community realm, deployed by its author. Read the code before you interact or send coins.

errors.gno

1.26 Kb · 22 lines
 1package hall
 2
 3import "errors"
 4
 5// Errors returned (as panics) by the hall's public functions.
 6var (
 7	ErrNotCurator       = errors.New("hall: only the curator may do this")
 8	ErrBadAddress       = errors.New("hall: invalid address")
 9	ErrNotRealm         = errors.New("hall: a challenge must enlist itself from its own realm")
10	ErrNilChallenge     = errors.New("hall: nil challenge")
11	ErrAlreadyEnlisted  = errors.New("hall: this realm already enlisted a challenge")
12	ErrSlugTaken        = errors.New("hall: slug already taken")
13	ErrUnknownChallenge = errors.New("hall: no such challenge")
14	ErrNotListed        = errors.New("hall: challenge is not open for claims")
15	ErrNotPending       = errors.New("hall: challenge is not awaiting review")
16	ErrAlreadyClaimed   = errors.New("hall: you already claimed this challenge")
17	ErrNotCaptured      = errors.New("hall: the cellar has no record of your capture; break the challenge first")
18	ErrNotUser          = errors.New("hall: handles belong to people; call SetHandle directly from your wallet")
19	ErrBadHandle        = errors.New("hall: a handle is 3-20 chars of [a-z0-9_], starting with a letter")
20	ErrHandleTaken      = errors.New("hall: handle already taken")
21	ErrBadSeasonName    = errors.New("hall: a season name is 1-40 printable characters")
22)