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

errors.gno

0.40 Kb · 15 lines
 1package whitelist
 2
 3import (
 4	ufmt "gno.land/p/nt/ufmt/v0"
 5)
 6
 7const (
 8	errUnauthorized  = "[GNOSWAP-ORDER-WHITELIST-001] unauthorized caller"
 9	errInvalidPool   = "[GNOSWAP-ORDER-WHITELIST-002] invalid whitelisted pool"
10	errInvalidTarget = "[GNOSWAP-ORDER-WHITELIST-003] invalid target"
11)
12
13func makeErrorWithDetails(message string, details string) error {
14	return ufmt.Errorf("%s || %s", message, details)
15}