Skip to content Search Apps Documentation Source Content 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 common
 2
 3import (
 4	"gno.land/p/nt/ufmt/v0"
 5)
 6
 7const (
 8	errNotRegistered       = "[GNOSWAP-COMMON-001] token is not registered"
 9	errNotHandleNativeCoin = "[GNOSWAP-COMMON-002] handle native coin is not allowed"
10	errInvalidTokenKey     = "[GNOSWAP-COMMON-003] invalid token key"
11)
12
13func newErrorWithDetail(message string, detail string) string {
14	return ufmt.Errorf("%s || %s", message, detail).Error()
15}