errors.gno
0.52 Kb · 14 lines
1package bolo
2
3// Error is the type of every failure the registry reports (API C10, §7). Each one is
4// a constant led by its copy key, the same keys v0 uses (UI spec §8).
5type Error string
6
7func (e Error) Error() string { return string(e) }
8
9const (
10 ErrNotUserCall Error = "err.use_wallet: not a direct transaction from a wallet"
11 ErrSessionKey Error = "err.master_key: a session key can't do this"
12 ErrNotAdmin Error = "err.not_allowed: only the admin can do this"
13 ErrSetting Error = "err.input: invalid setting"
14)